Please no Is

This commit is contained in:
SD 2021-02-21 08:54:30 +05:30
parent 55d5a68b1c
commit 371ddf4961
No known key found for this signature in database
GPG key ID: E36B57EE08544BC5
3 changed files with 4 additions and 4 deletions

View file

@ -23,10 +23,10 @@ import net.minecraft.util.math.Vec3i;
import net.minecraft.util.registry.RegistryKey;
import net.minecraft.world.World;
import org.dimdev.dimdoors.world.pocket.VirtualLocation;
import org.dimdev.dimdoors.world.pocket.type.addon.IHasAddon;
import org.dimdev.dimdoors.world.pocket.type.addon.AddonProvider;
import org.dimdev.dimdoors.world.pocket.type.addon.PocketAddon;
public class Pocket extends AbstractPocket<Pocket> implements IHasAddon {
public class Pocket extends AbstractPocket<Pocket> implements AddonProvider {
public static String KEY = "pocket";
private final Map<Identifier, PocketAddon> addons = new HashMap<>();

View file

@ -3,7 +3,7 @@ package org.dimdev.dimdoors.world.pocket.type.addon;
import net.minecraft.util.Identifier;
import org.dimdev.dimdoors.world.pocket.type.Pocket;
public interface IHasAddon {
public interface AddonProvider {
<C extends PocketAddon> C getAddon(Identifier id);
boolean hasAddon(Identifier id);

View file

@ -160,7 +160,7 @@ public class DyeableAddon implements PocketAddon {
}
}
public interface DyeablePocket extends IHasAddon {
public interface DyeablePocket extends AddonProvider {
default boolean addDye(Entity entity, DyeColor dyeColor) {
ensureIsPocket();
if (!this.hasAddon(ID)) {