From 371ddf496166ae7164e569bea34a81323da677c3 Mon Sep 17 00:00:00 2001 From: SD Date: Sun, 21 Feb 2021 08:54:30 +0530 Subject: [PATCH] Please no Is --- .../java/org/dimdev/dimdoors/world/pocket/type/Pocket.java | 4 ++-- .../pocket/type/addon/{IHasAddon.java => AddonProvider.java} | 2 +- .../dimdev/dimdoors/world/pocket/type/addon/DyeableAddon.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/main/java/org/dimdev/dimdoors/world/pocket/type/addon/{IHasAddon.java => AddonProvider.java} (93%) diff --git a/src/main/java/org/dimdev/dimdoors/world/pocket/type/Pocket.java b/src/main/java/org/dimdev/dimdoors/world/pocket/type/Pocket.java index 10cf7a0c..c3b4ad17 100644 --- a/src/main/java/org/dimdev/dimdoors/world/pocket/type/Pocket.java +++ b/src/main/java/org/dimdev/dimdoors/world/pocket/type/Pocket.java @@ -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 implements IHasAddon { +public class Pocket extends AbstractPocket implements AddonProvider { public static String KEY = "pocket"; private final Map addons = new HashMap<>(); diff --git a/src/main/java/org/dimdev/dimdoors/world/pocket/type/addon/IHasAddon.java b/src/main/java/org/dimdev/dimdoors/world/pocket/type/addon/AddonProvider.java similarity index 93% rename from src/main/java/org/dimdev/dimdoors/world/pocket/type/addon/IHasAddon.java rename to src/main/java/org/dimdev/dimdoors/world/pocket/type/addon/AddonProvider.java index 15b66226..374698eb 100644 --- a/src/main/java/org/dimdev/dimdoors/world/pocket/type/addon/IHasAddon.java +++ b/src/main/java/org/dimdev/dimdoors/world/pocket/type/addon/AddonProvider.java @@ -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 getAddon(Identifier id); boolean hasAddon(Identifier id); diff --git a/src/main/java/org/dimdev/dimdoors/world/pocket/type/addon/DyeableAddon.java b/src/main/java/org/dimdev/dimdoors/world/pocket/type/addon/DyeableAddon.java index 04ea0f00..388748af 100644 --- a/src/main/java/org/dimdev/dimdoors/world/pocket/type/addon/DyeableAddon.java +++ b/src/main/java/org/dimdev/dimdoors/world/pocket/type/addon/DyeableAddon.java @@ -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)) {