From 020a79ee8367512376f2625e29ef431ae9bbd3ea Mon Sep 17 00:00:00 2001 From: thatsIch Date: Sun, 21 Sep 2014 00:50:46 +0200 Subject: [PATCH] Typo locateable --- ...leRegistry.java => LocatableRegistry.java} | 96 +++++++++---------- .../registries/RegistryContainer.java | 4 +- 2 files changed, 50 insertions(+), 50 deletions(-) rename core/features/registries/{LocateableRegistry.java => LocatableRegistry.java} (82%) diff --git a/core/features/registries/LocateableRegistry.java b/core/features/registries/LocatableRegistry.java similarity index 82% rename from core/features/registries/LocateableRegistry.java rename to core/features/registries/LocatableRegistry.java index b8d7a6b1..ee99632f 100644 --- a/core/features/registries/LocateableRegistry.java +++ b/core/features/registries/LocatableRegistry.java @@ -1,48 +1,48 @@ -package appeng.core.features.registries; - -import java.util.HashMap; - -import net.minecraftforge.common.MinecraftForge; -import appeng.api.events.LocatableEventAnnounce; -import appeng.api.events.LocatableEventAnnounce.LocatableEvent; -import appeng.api.features.ILocatable; -import appeng.api.features.ILocatableRegistry; -import appeng.util.Platform; -import cpw.mods.fml.common.eventhandler.SubscribeEvent; - -public class LocateableRegistry implements ILocatableRegistry -{ - - private HashMap set; - - @SubscribeEvent - public void updateLocateable(LocatableEventAnnounce e) - { - if ( Platform.isClient() ) - return; // IGNORE! - - if ( e.change == LocatableEvent.Register ) - { - set.put( e.target.getLocatableSerial(), e.target ); - } - else if ( e.change == LocatableEvent.Unregister ) - { - set.remove( e.target.getLocatableSerial() ); - } - } - - public LocateableRegistry() { - set = new HashMap(); - MinecraftForge.EVENT_BUS.register( this ); - } - - /** - * Find a locate-able object by its serial. - */ - @Override - public Object findLocatableBySerial(long ser) - { - return set.get( ser ); - } - -} +package appeng.core.features.registries; + +import java.util.HashMap; + +import net.minecraftforge.common.MinecraftForge; +import appeng.api.events.LocatableEventAnnounce; +import appeng.api.events.LocatableEventAnnounce.LocatableEvent; +import appeng.api.features.ILocatable; +import appeng.api.features.ILocatableRegistry; +import appeng.util.Platform; +import cpw.mods.fml.common.eventhandler.SubscribeEvent; + +public class LocatableRegistry implements ILocatableRegistry +{ + + private HashMap set; + + @SubscribeEvent + public void updateLocatable(LocatableEventAnnounce e) + { + if ( Platform.isClient() ) + return; // IGNORE! + + if ( e.change == LocatableEvent.Register ) + { + set.put( e.target.getLocatableSerial(), e.target ); + } + else if ( e.change == LocatableEvent.Unregister ) + { + set.remove( e.target.getLocatableSerial() ); + } + } + + public LocatableRegistry() { + set = new HashMap(); + MinecraftForge.EVENT_BUS.register( this ); + } + + /** + * Find a locate-able object by its serial. + */ + @Override + public Object findLocatableBySerial(long ser) + { + return set.get( ser ); + } + +} diff --git a/core/features/registries/RegistryContainer.java b/core/features/registries/RegistryContainer.java index 2a8cbf64..40edb5dc 100644 --- a/core/features/registries/RegistryContainer.java +++ b/core/features/registries/RegistryContainer.java @@ -21,7 +21,7 @@ public class RegistryContainer implements IRegistryContainer private GrinderRecipeManager GrinderRecipes = new GrinderRecipeManager(); private ExternalStorageRegistry ExternalStorageHandlers = new ExternalStorageRegistry(); private CellRegistry CellRegistry = new CellRegistry(); - private LocateableRegistry LocateableRegistry = new LocateableRegistry(); + private LocatableRegistry LocatableRegistry = new LocatableRegistry(); private SpecialComparisonRegistry SpecialComparsonRegistry = new SpecialComparisonRegistry(); private WirelessRegistry WirelessRegistery = new WirelessRegistry(); private GridCacheRegistry GridCacheRegistry = new GridCacheRegistry(); @@ -64,7 +64,7 @@ public class RegistryContainer implements IRegistryContainer @Override public ILocatableRegistry locatable() { - return LocateableRegistry; + return LocatableRegistry; } @Override