-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve DungeonBlaze.java #254
improve DungeonBlaze.java #254
Conversation
LifeIsAParadox
commented
Aug 23, 2023
- add javadoc
- using ArmorStandEntity instead of iterating every Entity
- reorganize large methods into clearer multiple smaller methods
- defined outlinecolor as constants
* add javadoc * using ArmorStandEntity instead iterating every Entity * reorganize large methods into clearer multiple smaller methods * defined outlinecolor as constants
static boolean renderHooked = false; | ||
|
||
private static final float[] WHITE_COLOR_COMPONENTS = {1.0f, 1.0f, 1.0f}; | ||
private static final QuadColor outlineColorGreen = QuadColor.single(0.0F, 1.0F, 0.0F, 1f); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private static final QuadColor outlineColorGreen = QuadColor.single(0.0F, 1.0F, 0.0F, 1f); | |
private static final QuadColor outlineColorGreen = QuadColor.single(0.0f, 1.0f, 0.0f, 1.0f); |
for coherence with the other values
e.printStackTrace(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOGGER.warn("[Skyblocker BlazeRenderer] " + e); | |
e.printStackTrace(); | |
LOGGER.warn("[Skyblocker Dungeon Blaze] Encountered an unknown exception", e); |
Something like this would be better than printStackTrace
.
*/ | ||
private static void handleException(Exception e) { | ||
LOGGER.warn("[Skyblocker BlazeRenderer] Encountered an unknown exception" + e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOGGER.warn("[Skyblocker BlazeRenderer] Encountered an unknown exception" + e); | |
LOGGER.warn("[Skyblocker BlazeRenderer] Encountered an unknown exception", e); |