From 51de4da845945bb95f8f9640c82fe523befb6a91 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Thu, 14 Jul 2022 21:44:46 -0500 Subject: [PATCH] Minor cosmetic/warning changes/fixes --- .../lod/core/api/external/events/DhApiEventRegister.java | 6 +++--- .../core/handlers/dependencyInjection/SingletonHandler.java | 4 ++-- .../lod/core/wrapperInterfaces/chunk/IChunkWrapper.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/seibel/lod/core/api/external/events/DhApiEventRegister.java b/src/main/java/com/seibel/lod/core/api/external/events/DhApiEventRegister.java index fbacb2355..78078412b 100644 --- a/src/main/java/com/seibel/lod/core/api/external/events/DhApiEventRegister.java +++ b/src/main/java/com/seibel/lod/core/api/external/events/DhApiEventRegister.java @@ -7,7 +7,7 @@ import com.seibel.lod.core.api.external.shared.objects.DhApiResult; * Handles adding/removing event handlers. * * @author James Seibel - * @version 2022-7-13 + * @version 2022-7-14 */ public class DhApiEventRegister { @@ -17,7 +17,7 @@ public class DhApiEventRegister * If multiple of the same eventHandler are added DhApiResult will return * the name of the already added handler and success = false. */ - public static DhApiResult on(IDhApiEventHandler eventHandler) + public static DhApiResult on(IDhApiEventHandler eventHandler) { throw new UnsupportedOperationException(); } @@ -27,7 +27,7 @@ public class DhApiEventRegister * If no eventHandler of the given class has been registered the result will return * success = false. */ - public static DhApiResult off(IDhApiEventHandler eventHandler) + public static DhApiResult off(IDhApiEventHandler eventHandler) { throw new UnsupportedOperationException(); } diff --git a/src/main/java/com/seibel/lod/core/handlers/dependencyInjection/SingletonHandler.java b/src/main/java/com/seibel/lod/core/handlers/dependencyInjection/SingletonHandler.java index 676bb29fd..cecc5e710 100644 --- a/src/main/java/com/seibel/lod/core/handlers/dependencyInjection/SingletonHandler.java +++ b/src/main/java/com/seibel/lod/core/handlers/dependencyInjection/SingletonHandler.java @@ -36,8 +36,8 @@ public class SingletonHandler /** * Links the given implementation object to an interface, so it can be referenced later. * - * @param dependencyInterface The interface the implementation object should implement. - * @param dependencyImplementation An object that implements the dependencyInterface interface. + * @param interfaceClass The interface the implementation object should implement. + * @param singletonReference An object that implements the dependencyInterface interface. * @throws IllegalStateException if the implementation object doesn't implement * the interface or the interface has already been bound. */ diff --git a/src/main/java/com/seibel/lod/core/wrapperInterfaces/chunk/IChunkWrapper.java b/src/main/java/com/seibel/lod/core/wrapperInterfaces/chunk/IChunkWrapper.java index 86379ee3f..92320c728 100644 --- a/src/main/java/com/seibel/lod/core/wrapperInterfaces/chunk/IChunkWrapper.java +++ b/src/main/java/com/seibel/lod/core/wrapperInterfaces/chunk/IChunkWrapper.java @@ -46,7 +46,7 @@ public interface IChunkWrapper extends IBindable @Deprecated IBlockDetailWrapper getBlockDetail(int x, int y, int z); - // Returns null if block doesn't exist. Note that this can cross chunk boundaries. + /** Returns null if block doesn't exist. Note that this can cross chunk boundaries. */ @Deprecated IBlockDetailWrapper getBlockDetailAtFace(int x, int y, int z, ELodDirection dir);