Package net.minecraft.client.renderer
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 pGametime) private floatcalculateIntensity(long pGametime) booleanfloatgetIntensity(float pPartialTick) floatfloatvoidtick(long pGametime)
-
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 pGametime) -
calculateFlashParameters
private void calculateFlashParameters(long pGametime) -
calculateIntensity
private float calculateIntensity(long pGametime) -
getXAngle
public float getXAngle() -
getYAngle
public float getYAngle() -
getIntensity
public float getIntensity(float pPartialTick) -
flashStartedThisTick
public boolean flashStartedThisTick()
-