Please no Is
This commit is contained in:
parent
55d5a68b1c
commit
371ddf4961
3 changed files with 4 additions and 4 deletions
|
@ -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<>();
|
||||
|
|
|
@ -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);
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue