Makes some changes to make the methods here resemble that of the Forge implementation more.
This commit is contained in:
@@ -178,6 +178,26 @@ public class EventBus
|
|||||||
*/
|
*/
|
||||||
private static float experienceProgress = -1;
|
private static float experienceProgress = -1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the transparency level of the next drawn element.
|
||||||
|
*
|
||||||
|
* @param alpha - The transparency, from 0 to 1.
|
||||||
|
*/
|
||||||
|
public static void setAlpha(float alpha)
|
||||||
|
{
|
||||||
|
RenderSystem.color4f(1.0F, 1.0F, 1.0F, alpha);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Resets the transparency level.
|
||||||
|
*
|
||||||
|
* @see #setAlpha(float)
|
||||||
|
*/
|
||||||
|
public static void resetAlpha()
|
||||||
|
{
|
||||||
|
setAlpha(1.0F);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run whenever the player clicks a mouse button. This brings the hands into
|
* Run whenever the player clicks a mouse button. This brings the hands into
|
||||||
* view, and briefly brings the health and hunger into view if the held item
|
* view, and briefly brings the health and hunger into view if the held item
|
||||||
@@ -314,6 +334,8 @@ public class EventBus
|
|||||||
MinecraftClient mc = MinecraftClient.getInstance();
|
MinecraftClient mc = MinecraftClient.getInstance();
|
||||||
Entity entity = mc.getCameraEntity();
|
Entity entity = mc.getCameraEntity();
|
||||||
boolean changed = false;
|
boolean changed = false;
|
||||||
|
boolean canceled = false;
|
||||||
|
|
||||||
if (mc.crosshairTarget != null && mc.crosshairTarget
|
if (mc.crosshairTarget != null && mc.crosshairTarget
|
||||||
.getType() != HitResult.Type.MISS)
|
.getType() != HitResult.Type.MISS)
|
||||||
{
|
{
|
||||||
@@ -334,25 +356,19 @@ public class EventBus
|
|||||||
if (changed || mainHandLock || offHandLock || crosshairTime
|
if (changed || mainHandLock || offHandLock || crosshairTime
|
||||||
> 0)
|
> 0)
|
||||||
{
|
{
|
||||||
RenderSystem.color4f(1.0F,
|
setAlpha(Main.getAlpha(crosshairTime > 0 ?
|
||||||
1.0F,
|
|
||||||
1.0F,
|
|
||||||
Main.getAlpha(crosshairTime > 0 ?
|
|
||||||
crosshairTime :
|
crosshairTime :
|
||||||
VISUAL_TIME));
|
VISUAL_TIME));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
RenderSystem.color4f(1.0F,
|
canceled = true;
|
||||||
1.0F,
|
|
||||||
1.0F,
|
|
||||||
0F);
|
|
||||||
}
|
}
|
||||||
if (crosshairTime > 0)
|
if (crosshairTime > 0)
|
||||||
{
|
{
|
||||||
crosshairTime--;
|
crosshairTime--;
|
||||||
}
|
}
|
||||||
return false;
|
return canceled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -405,15 +421,10 @@ public class EventBus
|
|||||||
{
|
{
|
||||||
mountTime--;
|
mountTime--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mountTime > 0)
|
if (mountTime > 0)
|
||||||
{
|
{
|
||||||
/*
|
setAlpha(Main.getAlpha(mountTime));
|
||||||
* Renders it along with health.
|
|
||||||
*/
|
|
||||||
RenderSystem.color4f(1.0F,
|
|
||||||
1.0F,
|
|
||||||
1.0F,
|
|
||||||
Main.getAlpha(mountTime));
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -436,20 +447,11 @@ public class EventBus
|
|||||||
*/
|
*/
|
||||||
if (healthTime > 0)
|
if (healthTime > 0)
|
||||||
{
|
{
|
||||||
RenderSystem.color4f(1.0F,
|
setAlpha(Main.getAlpha(healthTime));
|
||||||
1.0F,
|
|
||||||
1.0F,
|
|
||||||
Main.getAlpha(healthTime));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
RenderSystem.color4f(1.0F,
|
|
||||||
1.0F,
|
|
||||||
1.0F,
|
|
||||||
0.0F);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether or not to draw the health bar, adjusting the alpha as
|
* Determines whether or not to draw the health bar, adjusting the alpha as
|
||||||
@@ -466,7 +468,7 @@ public class EventBus
|
|||||||
* health bar won't disappear, allowing the player to be constantly
|
* health bar won't disappear, allowing the player to be constantly
|
||||||
* reminded of their low health.
|
* reminded of their low health.
|
||||||
*/
|
*/
|
||||||
final float CONST_BOUNDARY = 0.5F;
|
final float HEALTH_BOUNDARY = 0.5F;
|
||||||
|
|
||||||
MinecraftClient mc = MinecraftClient.getInstance();
|
MinecraftClient mc = MinecraftClient.getInstance();
|
||||||
LivingEntity entity;
|
LivingEntity entity;
|
||||||
@@ -479,14 +481,8 @@ public class EventBus
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
boolean changed = false;
|
boolean changed = false;
|
||||||
|
boolean canceled =
|
||||||
/*
|
healthTime == 0 && health / maxHealth > HEALTH_BOUNDARY;
|
||||||
* Resets the transparency from the armor call.
|
|
||||||
*/
|
|
||||||
RenderSystem.color4f(1.0F,
|
|
||||||
1.0F,
|
|
||||||
1.0F,
|
|
||||||
1F);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks for a change in current or max health.
|
* Checks for a change in current or max health.
|
||||||
@@ -513,14 +509,11 @@ public class EventBus
|
|||||||
* Only makes a change if the player is healthy. Otherwise,
|
* Only makes a change if the player is healthy. Otherwise,
|
||||||
* the bar is shown.
|
* the bar is shown.
|
||||||
*/
|
*/
|
||||||
if (health / maxHealth > CONST_BOUNDARY)
|
if (health / maxHealth > HEALTH_BOUNDARY)
|
||||||
{
|
{
|
||||||
RenderSystem.color4f(1.0F,
|
setAlpha(Main.getAlpha(healthTime));
|
||||||
1.0F,
|
|
||||||
1.0F,
|
|
||||||
Main.getAlpha(healthTime));
|
|
||||||
}
|
}
|
||||||
return false;
|
return canceled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -542,15 +535,9 @@ public class EventBus
|
|||||||
|
|
||||||
MinecraftClient mc = MinecraftClient.getInstance();
|
MinecraftClient mc = MinecraftClient.getInstance();
|
||||||
PlayerEntity entity;
|
PlayerEntity entity;
|
||||||
|
boolean canceled;
|
||||||
boolean changed = false;
|
boolean changed = false;
|
||||||
|
|
||||||
/*
|
|
||||||
* Resets the transparency from last time.
|
|
||||||
*/
|
|
||||||
RenderSystem.color4f(1.0F,
|
|
||||||
1.0F,
|
|
||||||
1.0F,
|
|
||||||
1F);
|
|
||||||
if (mc.getCameraEntity() instanceof PlayerEntity)
|
if (mc.getCameraEntity() instanceof PlayerEntity)
|
||||||
{
|
{
|
||||||
entity = (PlayerEntity) mc.getCameraEntity();
|
entity = (PlayerEntity) mc.getCameraEntity();
|
||||||
@@ -584,15 +571,13 @@ public class EventBus
|
|||||||
{
|
{
|
||||||
hungerTime--;
|
hungerTime--;
|
||||||
}
|
}
|
||||||
RenderSystem.color4f(1.0F,
|
|
||||||
1.0F,
|
canceled = hungerTime == 0 && hunger > HUNGER_BOUNDARY;
|
||||||
1.0F,
|
if (!canceled)
|
||||||
Main.getAlpha(hungerTime));
|
{
|
||||||
/*
|
setAlpha(Main.getAlpha(hungerTime));
|
||||||
* Only makes a change if the player is satisfied. Otherwise,
|
}
|
||||||
* the bar is shown.
|
return canceled;
|
||||||
*/
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -607,8 +592,6 @@ public class EventBus
|
|||||||
{
|
{
|
||||||
MinecraftClient mc = MinecraftClient.getInstance();
|
MinecraftClient mc = MinecraftClient.getInstance();
|
||||||
ClientPlayerEntity entity;
|
ClientPlayerEntity entity;
|
||||||
boolean changed = false;
|
|
||||||
|
|
||||||
if (mc.getCameraEntity() instanceof ClientPlayerEntity)
|
if (mc.getCameraEntity() instanceof ClientPlayerEntity)
|
||||||
{
|
{
|
||||||
entity = (ClientPlayerEntity) mc.getCameraEntity();
|
entity = (ClientPlayerEntity) mc.getCameraEntity();
|
||||||
@@ -626,12 +609,9 @@ public class EventBus
|
|||||||
{
|
{
|
||||||
jumpTime--;
|
jumpTime--;
|
||||||
}
|
}
|
||||||
if (experienceTime > 0)
|
if (jumpTime > 0)
|
||||||
{
|
{
|
||||||
RenderSystem.color4f(1.0F,
|
setAlpha(Main.getAlpha(jumpTime));
|
||||||
1.0F,
|
|
||||||
1.0F,
|
|
||||||
Main.getAlpha(jumpTime));
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -675,10 +655,7 @@ public class EventBus
|
|||||||
}
|
}
|
||||||
if (experienceTime > 0)
|
if (experienceTime > 0)
|
||||||
{
|
{
|
||||||
RenderSystem.color4f(1.0F,
|
setAlpha(Main.getAlpha(experienceTime));
|
||||||
1.0F,
|
|
||||||
1.0F,
|
|
||||||
Main.getAlpha(experienceTime));
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -902,9 +879,6 @@ public class EventBus
|
|||||||
*/
|
*/
|
||||||
public static void recolorHotbar()
|
public static void recolorHotbar()
|
||||||
{
|
{
|
||||||
RenderSystem.color4f(1.0F,
|
setAlpha(Main.getAlpha(hotbarTime));
|
||||||
1.0F,
|
|
||||||
1.0F,
|
|
||||||
Main.getAlpha(hotbarTime));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,12 +45,17 @@ public class HudHook
|
|||||||
* @param stack - The matrix drawing stack.
|
* @param stack - The matrix drawing stack.
|
||||||
* @param callbackInfo
|
* @param callbackInfo
|
||||||
*
|
*
|
||||||
|
* @version 0.2-1.16.4-fabric
|
||||||
* @since 0.1-1.16.4-fabric
|
* @since 0.1-1.16.4-fabric
|
||||||
*/
|
*/
|
||||||
@Inject(method = "renderCrosshair", at = @At(value = "HEAD"))
|
@Inject(method = "renderCrosshair", at = @At(value = "HEAD"),
|
||||||
|
cancellable = true)
|
||||||
public void startCrosshair(MatrixStack stack, CallbackInfo callbackInfo)
|
public void startCrosshair(MatrixStack stack, CallbackInfo callbackInfo)
|
||||||
{
|
{
|
||||||
EventBus.drawCrosshair();
|
if (EventBus.drawCrosshair())
|
||||||
|
{
|
||||||
|
callbackInfo.cancel();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -59,6 +64,7 @@ public class HudHook
|
|||||||
* @param stack - The matrix drawing stack.
|
* @param stack - The matrix drawing stack.
|
||||||
* @param callbackInfo
|
* @param callbackInfo
|
||||||
*
|
*
|
||||||
|
* @version 0.2-1.16.4-fabric
|
||||||
* @since 0.1-1.16.4-fabric
|
* @since 0.1-1.16.4-fabric
|
||||||
*/
|
*/
|
||||||
@Inject(method = "renderCrosshair", at = @At(value = "TAIL"))
|
@Inject(method = "renderCrosshair", at = @At(value = "TAIL"))
|
||||||
@@ -67,7 +73,7 @@ public class HudHook
|
|||||||
/*
|
/*
|
||||||
* Resets the color so that nothing else is bothered.
|
* Resets the color so that nothing else is bothered.
|
||||||
*/
|
*/
|
||||||
RenderSystem.color4f(1, 1, 1, 1F);
|
EventBus.resetAlpha();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -76,14 +82,20 @@ public class HudHook
|
|||||||
* @param stack - The matrix drawing stack.
|
* @param stack - The matrix drawing stack.
|
||||||
* @param callbackInfo
|
* @param callbackInfo
|
||||||
*
|
*
|
||||||
|
* @version 0.2-1.16.4-fabric
|
||||||
* @since 0.1-1.16.4-fabric
|
* @since 0.1-1.16.4-fabric
|
||||||
*/
|
*/
|
||||||
@Inject(method = "renderMountJumpBar", at = @At(value = "HEAD"))
|
@Inject(method = "renderMountJumpBar", at = @At(value = "HEAD"),
|
||||||
|
cancellable =
|
||||||
|
true)
|
||||||
public void startJumpbar(MatrixStack stack,
|
public void startJumpbar(MatrixStack stack,
|
||||||
int x,
|
int x,
|
||||||
CallbackInfo callbackInfo)
|
CallbackInfo callbackInfo)
|
||||||
{
|
{
|
||||||
EventBus.drawJumpbar();
|
if (EventBus.drawJumpbar())
|
||||||
|
{
|
||||||
|
callbackInfo.cancel();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -92,6 +104,7 @@ public class HudHook
|
|||||||
* @param stack - The matrix drawing stack.
|
* @param stack - The matrix drawing stack.
|
||||||
* @param callbackInfo
|
* @param callbackInfo
|
||||||
*
|
*
|
||||||
|
* @version 0.2-1.16.4-fabric
|
||||||
* @since 0.1-1.16.4-fabric
|
* @since 0.1-1.16.4-fabric
|
||||||
*/
|
*/
|
||||||
@Inject(method = "renderMountJumpBar", at = @At(value = "TAIL"))
|
@Inject(method = "renderMountJumpBar", at = @At(value = "TAIL"))
|
||||||
@@ -102,7 +115,7 @@ public class HudHook
|
|||||||
/*
|
/*
|
||||||
* Resets the color so that nothing else is bothered.
|
* Resets the color so that nothing else is bothered.
|
||||||
*/
|
*/
|
||||||
RenderSystem.color4f(1, 1, 1, 1F);
|
EventBus.resetAlpha();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -111,6 +124,7 @@ public class HudHook
|
|||||||
* @param stack - The matrix drawing stack.
|
* @param stack - The matrix drawing stack.
|
||||||
* @param callbackInfo
|
* @param callbackInfo
|
||||||
*
|
*
|
||||||
|
* @version 0.2-1.16.4-fabric
|
||||||
* @since 0.1-1.16.4-fabric
|
* @since 0.1-1.16.4-fabric
|
||||||
*/
|
*/
|
||||||
@Inject(method = "renderExperienceBar", at = @At(value = "HEAD"),
|
@Inject(method = "renderExperienceBar", at = @At(value = "HEAD"),
|
||||||
@@ -131,6 +145,7 @@ public class HudHook
|
|||||||
* @param stack - The matrix drawing stack.
|
* @param stack - The matrix drawing stack.
|
||||||
* @param callbackInfo
|
* @param callbackInfo
|
||||||
*
|
*
|
||||||
|
* @version 0.2-1.16.4-fabric
|
||||||
* @since 0.1-1.16.4-fabric
|
* @since 0.1-1.16.4-fabric
|
||||||
*/
|
*/
|
||||||
@Inject(method = "renderExperienceBar", at = @At(value = "TAIL"))
|
@Inject(method = "renderExperienceBar", at = @At(value = "TAIL"))
|
||||||
@@ -141,7 +156,7 @@ public class HudHook
|
|||||||
/*
|
/*
|
||||||
* Resets the color so that nothing else is bothered.
|
* Resets the color so that nothing else is bothered.
|
||||||
*/
|
*/
|
||||||
RenderSystem.color4f(1, 1, 1, 1F);
|
EventBus.resetAlpha();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -150,12 +165,18 @@ public class HudHook
|
|||||||
* @param stack - The matrix drawing stack.
|
* @param stack - The matrix drawing stack.
|
||||||
* @param callbackInfo
|
* @param callbackInfo
|
||||||
*
|
*
|
||||||
|
* @version 0.2-1.16.4-fabric
|
||||||
* @since 0.1-1.16.4-fabric
|
* @since 0.1-1.16.4-fabric
|
||||||
*/
|
*/
|
||||||
@Inject(method = "renderMountHealth", at = @At(value = "HEAD"))
|
@Inject(method = "renderMountHealth", at = @At(value = "HEAD"),
|
||||||
|
cancellable =
|
||||||
|
true)
|
||||||
public void startMountHealth(MatrixStack stack, CallbackInfo callbackInfo)
|
public void startMountHealth(MatrixStack stack, CallbackInfo callbackInfo)
|
||||||
{
|
{
|
||||||
EventBus.drawMountHealth();
|
if (EventBus.drawMountHealth())
|
||||||
|
{
|
||||||
|
callbackInfo.cancel();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -164,6 +185,7 @@ public class HudHook
|
|||||||
* @param stack - The matrix drawing stack.
|
* @param stack - The matrix drawing stack.
|
||||||
* @param callbackInfo
|
* @param callbackInfo
|
||||||
*
|
*
|
||||||
|
* @version 0.2-1.16.4-fabric
|
||||||
* @since 0.1-1.16.4-fabric
|
* @since 0.1-1.16.4-fabric
|
||||||
*/
|
*/
|
||||||
@Inject(method = "renderMountHealth", at = @At(value = "TAIL"))
|
@Inject(method = "renderMountHealth", at = @At(value = "TAIL"))
|
||||||
@@ -172,7 +194,7 @@ public class HudHook
|
|||||||
/*
|
/*
|
||||||
* Resets the color so that nothing else is bothered.
|
* Resets the color so that nothing else is bothered.
|
||||||
*/
|
*/
|
||||||
RenderSystem.color4f(1, 1, 1, 1F);
|
EventBus.resetAlpha();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -182,6 +204,7 @@ public class HudHook
|
|||||||
* @param matrices - The matrix drawing stack.
|
* @param matrices - The matrix drawing stack.
|
||||||
* @param callbackInfo
|
* @param callbackInfo
|
||||||
*
|
*
|
||||||
|
* @version 0.2-1.16.4-fabric
|
||||||
* @since 0.1-1.16.4-fabric
|
* @since 0.1-1.16.4-fabric
|
||||||
*/
|
*/
|
||||||
@Inject(method = "renderHotbar", at = @At(value = "HEAD"), cancellable =
|
@Inject(method = "renderHotbar", at = @At(value = "HEAD"), cancellable =
|
||||||
@@ -203,6 +226,7 @@ public class HudHook
|
|||||||
* @param matrices - The matrix drawing stack.
|
* @param matrices - The matrix drawing stack.
|
||||||
* @param callbackInfo
|
* @param callbackInfo
|
||||||
*
|
*
|
||||||
|
* @version 0.2-1.16.4-fabric
|
||||||
* @since 0.1-1.16.4-fabric
|
* @since 0.1-1.16.4-fabric
|
||||||
*/
|
*/
|
||||||
@Inject(method = "renderHotbar", at = @At(value = "INVOKE", target =
|
@Inject(method = "renderHotbar", at = @At(value = "INVOKE", target =
|
||||||
@@ -222,6 +246,7 @@ public class HudHook
|
|||||||
* @param matrices - The matrix drawing stack.
|
* @param matrices - The matrix drawing stack.
|
||||||
* @param callbackInfo
|
* @param callbackInfo
|
||||||
*
|
*
|
||||||
|
* @version 0.2-1.16.4-fabric
|
||||||
* @since 0.1-1.16.4-fabric
|
* @since 0.1-1.16.4-fabric
|
||||||
*/
|
*/
|
||||||
@Inject(method = "renderHotbar", at = @At(value = "TAIL"))
|
@Inject(method = "renderHotbar", at = @At(value = "TAIL"))
|
||||||
@@ -232,6 +257,6 @@ public class HudHook
|
|||||||
/*
|
/*
|
||||||
* Resets the color so that nothing else is bothered.
|
* Resets the color so that nothing else is bothered.
|
||||||
*/
|
*/
|
||||||
RenderSystem.color4f(1, 1, 1, 1F);
|
EventBus.resetAlpha();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
|||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
import markil3.immersive_hud.EventBus;
|
import markil3.immersive_hud.EventBus;
|
||||||
|
import markil3.immersive_hud.Main;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class hooks into the profiler to trigger color changes for the status
|
* This class hooks into the profiler to trigger color changes for the status
|
||||||
@@ -50,7 +51,10 @@ public class ProfilerHook
|
|||||||
{
|
{
|
||||||
if (section.equals("armor"))
|
if (section.equals("armor"))
|
||||||
{
|
{
|
||||||
EventBus.drawArmor();
|
if (EventBus.drawArmor())
|
||||||
|
{
|
||||||
|
EventBus.setAlpha(0F);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -69,16 +73,30 @@ public class ProfilerHook
|
|||||||
switch (section)
|
switch (section)
|
||||||
{
|
{
|
||||||
case "health":
|
case "health":
|
||||||
EventBus.drawHealth();
|
/*
|
||||||
|
* Resets the transparency from the previous call.
|
||||||
|
*/
|
||||||
|
EventBus.setAlpha(1F);
|
||||||
|
if (EventBus.drawHealth())
|
||||||
|
{
|
||||||
|
EventBus.setAlpha(0F);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "food":
|
case "food":
|
||||||
EventBus.drawHunger();
|
/*
|
||||||
|
* Resets the transparency from the previous call.
|
||||||
|
*/
|
||||||
|
EventBus.setAlpha(1F);
|
||||||
|
if (EventBus.drawHunger())
|
||||||
|
{
|
||||||
|
EventBus.setAlpha(0F);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "air":
|
case "air":
|
||||||
/*
|
/*
|
||||||
* Resets the color so that nothing else is bothered.
|
* Resets the color so that nothing else is bothered.
|
||||||
*/
|
*/
|
||||||
RenderSystem.color4f(1, 1, 1, 1F);
|
EventBus.setAlpha(1F);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user