From dcec7c72816ad785d6bc8e47b55d2de6020b9880 Mon Sep 17 00:00:00 2001 From: Electroblob <35599699+Electroblob77@users.noreply.github.com> Date: Tue, 5 Jun 2018 21:24:09 +0100 Subject: [PATCH] Miscellaneous cleanup and commenting --- src/main/java/electroblob/wizardry/Wizardry.java | 8 +++++++- .../electroblob/wizardry/block/BlockSpectral.java | 6 ++---- .../wizardry/client/WizardryClientEventHandler.java | 5 +++++ .../wizardry/client/renderer/LayerStone.java | 2 ++ .../electroblob/wizardry/enchantment/Imbuement.java | 2 +- .../wizardry/entity/living/EntityWizard.java | 11 +++++------ 6 files changed, 22 insertions(+), 12 deletions(-) diff --git a/src/main/java/electroblob/wizardry/Wizardry.java b/src/main/java/electroblob/wizardry/Wizardry.java index 996258b9..6e5e1ab5 100644 --- a/src/main/java/electroblob/wizardry/Wizardry.java +++ b/src/main/java/electroblob/wizardry/Wizardry.java @@ -87,7 +87,13 @@ public class Wizardry { /** Static instance of the {@link Settings} object for Wizardry. */ public static final Settings settings = new Settings(); - /** Static instance of the {@link Logger} object for Wizardry. */ + /** Static instance of the {@link Logger} object for Wizardry. + *
+ * Logging conventions for wizardry (only these levels are used currently): + *
+ * - ERROR: Anything that threw an exception; may or may not crash the game.
+ * - WARN: Anything that isn't supposed to happen during normal operation, but didn't throw an exception.
+ * - INFO: Anything that might happen during normal mod operation that the user needs to know about. */
public static Logger logger;
// private static Pattern entityNamePattern;
diff --git a/src/main/java/electroblob/wizardry/block/BlockSpectral.java b/src/main/java/electroblob/wizardry/block/BlockSpectral.java
index 1aa8948f..708f3fe6 100644
--- a/src/main/java/electroblob/wizardry/block/BlockSpectral.java
+++ b/src/main/java/electroblob/wizardry/block/BlockSpectral.java
@@ -45,10 +45,8 @@ public class BlockSpectral extends BlockContainer {
return EnumBlockRenderType.MODEL;
}
- // Apparently it's OK to override this, despite it being deprecated. More
- // importantly, it being deprecated is not
- // Forge's doing, rather it is Mojang themselves misusing the @Deprecated
- // annotation to mean 'internal, don't call'.
+ // Apparently it's OK to override this, despite it being deprecated. More importantly, it being deprecated is not
+ // Forge's doing, rather it is Mojang themselves misusing the @Deprecated annotation to mean 'internal, don't call'.
@Override
public boolean isOpaqueCube(IBlockState state){
return false;
diff --git a/src/main/java/electroblob/wizardry/client/WizardryClientEventHandler.java b/src/main/java/electroblob/wizardry/client/WizardryClientEventHandler.java
index ea695342..d188784f 100644
--- a/src/main/java/electroblob/wizardry/client/WizardryClientEventHandler.java
+++ b/src/main/java/electroblob/wizardry/client/WizardryClientEventHandler.java
@@ -79,8 +79,13 @@ public final class WizardryClientEventHandler {
@SubscribeEvent
public static void onTextureStitchEvent(TextureStitchEvent.Pre event){
+
event.getMap().registerSprite(ContainerArcaneWorkbench.EMPTY_SLOT_CRYSTAL);
event.getMap().registerSprite(ContainerArcaneWorkbench.EMPTY_SLOT_UPGRADE);
+
+// for(int i=0; i<7; i++){
+// event.getMap().registerSprite(new ResourceLocation(Wizardry.MODID, "particle/ice_" + i));
+// }
}
// Shift-scrolling to change spells
diff --git a/src/main/java/electroblob/wizardry/client/renderer/LayerStone.java b/src/main/java/electroblob/wizardry/client/renderer/LayerStone.java
index 82f5950f..3630e58a 100644
--- a/src/main/java/electroblob/wizardry/client/renderer/LayerStone.java
+++ b/src/main/java/electroblob/wizardry/client/renderer/LayerStone.java
@@ -53,6 +53,8 @@ public class LayerStone implements LayerRenderer