HyCodeYourTale
classpublicPriority 3

LightRangePredicate

com.hypixel.hytale.server.spawning.util.LightRangePredicate

23

Methods

23

Public Methods

18

Fields

1

Constructors

Constructors

public
LightRangePredicate()

Methods

Public Methods (23)

publicstatic
byte calculateLightValue(BlockChunk blockChunk, int x, int y, int z, double sunlightFactor)
public
boolean isTestBlueLightValue()
public
boolean isTestGreenLightValue()
public
boolean isTestLightValue()
public
boolean isTestRedLightValue()
public
boolean isTestSkyLightValue()
public
boolean isTestSunlightValue()
publicstatic
int lightToPrecentage(byte light)
public
void setBlueLightRange(double[] lightRange)
public
void setGreenLightRange(double[] lightRange)
public
void setLightRange(LightType type, double[] lightRange)
public
void setLightRange(double[] lightRange)
public
void setRedLightRange(double[] lightRange)
public
void setSkyLightRange(double[] lightRange)
public
void setSunlightRange(double[] lightRange)
public
boolean test(World world, Vector3d position, ComponentAccessor<EntityStore> componentAccessor)
public
boolean test(BlockChunk blockChunk, int x, int y, int z, double sunlightFactor)
public
boolean testBlueLight(byte lightValue)
public
boolean testGreenLight(byte lightValue)
public
boolean testLight(byte lightValue)
public
boolean testRedLight(byte lightValue)
public
boolean testSkyLight(byte lightValue)
public
boolean testSunlight(byte lightValue)

Fields

Private/Package Fields (18)

privatebyte blueLightValueMax
privatebyte blueLightValueMin
privatebyte greenLightValueMax
privatebyte greenLightValueMin
privatebyte lightValueMax
privatebyte lightValueMin
privatebyte redLightValueMax
privatebyte redLightValueMin
privatebyte skyLightValueMax
privatebyte skyLightValueMin
privatebyte sunlightValueMax
privatebyte sunlightValueMin
privateboolean testBlueLightValue
privateboolean testGreenLightValue
privateboolean testLightValue
privateboolean testRedLightValue
privateboolean testSkyLightValue
privateboolean testSunlightValue

Related Classes