Class EndFlashState
java.lang.Object
net.minecraft.client.renderer.EndFlashState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final intprivate longprivate floatprivate static final intprivate static final intprivate static final intprivate intprivate floatstatic final intprivate floatprivate float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcalculateFlashParameters(long clockTime) private floatcalculateIntensity(long clockTime) booleanfloatgetIntensity(float partialTicks) floatfloatvoidtick(long clockTime)
-
Field Details
-
SOUND_DELAY_IN_TICKS
public static final int SOUND_DELAY_IN_TICKS- See Also:
-
FLASH_INTERVAL_IN_TICKS
private static final int FLASH_INTERVAL_IN_TICKS- See Also:
-
MAX_FLASH_OFFSET_IN_TICKS
private static final int MAX_FLASH_OFFSET_IN_TICKS- See Also:
-
MIN_FLASH_DURATION_IN_TICKS
private static final int MIN_FLASH_DURATION_IN_TICKS- See Also:
-
MAX_FLASH_DURATION_IN_TICKS
private static final int MAX_FLASH_DURATION_IN_TICKS- See Also:
-
flashSeed
private long flashSeed -
offset
private int offset -
duration
private int duration -
intensity
private float intensity -
oldIntensity
private float oldIntensity -
xAngle
private float xAngle -
yAngle
private float yAngle
-
-
Constructor Details
-
EndFlashState
public EndFlashState()
-
-
Method Details
-
tick
public void tick(long clockTime) -
calculateFlashParameters
private void calculateFlashParameters(long clockTime) -
calculateIntensity
private float calculateIntensity(long clockTime) -
getXAngle
public float getXAngle() -
getYAngle
public float getYAngle() -
getIntensity
public float getIntensity(float partialTicks) -
flashStartedThisTick
public boolean flashStartedThisTick()
-