Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- lightToPrecentage(byte)
- setLightRange(LightType, double[])
- setLightRange(double[])
- setSkyLightRange(double[])
- setSunlightRange(double[])
- setRedLightRange(double[])
- setGreenLightRange(double[])
- setBlueLightRange(double[])
- isTestLightValue()
- isTestSkyLightValue()
- isTestSunlightValue()
- isTestRedLightValue()
- isTestGreenLightValue()
- isTestBlueLightValue()
- test(World, Vector3d, ComponentAccessor)
- test(ComponentAccessor, Ref, int, int, int, double)
- testLight(byte)
- testSkyLight(byte)
- testSunlight(byte)
- testRedLight(byte)
- testGreenLight(byte)
- testBlueLight(byte)
- calculateLightValue(BlockSection, int, int, int, double)
Class LightRangePredicate
java.lang.Object
com.hypixel.hytale.server.spawning.util.LightRangePredicate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic bytecalculateLightValue(BlockSection blockSection, int x, int y, int z, double sunlightFactor) booleanbooleanbooleanbooleanbooleanbooleanstatic intlightToPrecentage(byte light) voidsetBlueLightRange(double[] lightRange) voidsetGreenLightRange(double[] lightRange) voidsetLightRange(double[] lightRange) voidsetLightRange(LightType type, double[] lightRange) voidsetRedLightRange(double[] lightRange) voidsetSkyLightRange(double[] lightRange) voidsetSunlightRange(double[] lightRange) booleantest(ComponentAccessor<ChunkStore> componentAccessor, Ref<ChunkStore> sectionRef, int x, int y, int z, double sunlightFactor) booleantest(World world, org.joml.Vector3d position, ComponentAccessor<EntityStore> componentAccessor) booleantestBlueLight(byte lightValue) booleantestGreenLight(byte lightValue) booleantestLight(byte lightValue) booleantestRedLight(byte lightValue) booleantestSkyLight(byte lightValue) booleantestSunlight(byte lightValue)
-
Constructor Details
-
LightRangePredicate
public LightRangePredicate()
-
-
Method Details
-
lightToPrecentage
public static int lightToPrecentage(byte light) -
setLightRange
-
setLightRange
public void setLightRange(@Nullable double[] lightRange) -
setSkyLightRange
public void setSkyLightRange(@Nullable double[] lightRange) -
setSunlightRange
public void setSunlightRange(@Nullable double[] lightRange) -
setRedLightRange
public void setRedLightRange(@Nullable double[] lightRange) -
setGreenLightRange
public void setGreenLightRange(@Nullable double[] lightRange) -
setBlueLightRange
public void setBlueLightRange(@Nullable double[] lightRange) -
isTestLightValue
public boolean isTestLightValue() -
isTestSkyLightValue
public boolean isTestSkyLightValue() -
isTestSunlightValue
public boolean isTestSunlightValue() -
isTestRedLightValue
public boolean isTestRedLightValue() -
isTestGreenLightValue
public boolean isTestGreenLightValue() -
isTestBlueLightValue
public boolean isTestBlueLightValue() -
test
public boolean test(@Nonnull World world, @Nonnull org.joml.Vector3d position, @Nonnull ComponentAccessor<EntityStore> componentAccessor) -
test
public boolean test(ComponentAccessor<ChunkStore> componentAccessor, @Nonnull Ref<ChunkStore> sectionRef, int x, int y, int z, double sunlightFactor) -
testLight
public boolean testLight(byte lightValue) -
testSkyLight
public boolean testSkyLight(byte lightValue) -
testSunlight
public boolean testSunlight(byte lightValue) -
testRedLight
public boolean testRedLight(byte lightValue) -
testGreenLight
public boolean testGreenLight(byte lightValue) -
testBlueLight
public boolean testBlueLight(byte lightValue) -
calculateLightValue
public static byte calculateLightValue(@Nonnull BlockSection blockSection, int x, int y, int z, double sunlightFactor)
-