public interface IClimateListener extends ILocatable, IClimateProvider
getClimateState(), getExactTemperature()
or getExactHumidity().
You can create an instance of the climate listener with IClimateFactory.createListener(ILocatable).
| Modifier and Type | Method and Description |
|---|---|
IClimateState |
getClimateState() |
float |
getExactHumidity() |
float |
getExactTemperature() |
void |
markLocatableDirty() |
void |
setClimateState(IClimateState climateState)
Sets the cached state to the given state.
|
void |
syncToClient()
Sends a packet if needed to all players that are currently "watching" the chunk that the listener is located in.
|
void |
syncToClient(net.minecraft.entity.player.EntityPlayerMP player)
Sends a packet to the given players.
|
void |
updateClientSide(boolean spawnParticles)
Updates the listener on the client side.
|
getCoordinates, getWorldObjgetBiome, getHumidity, getTemperatureIClimateState getClimateState()
float getExactTemperature()
float getExactHumidity()
void updateClientSide(boolean spawnParticles)
spawnParticles - If the listener should spawn particles around its location.void setClimateState(IClimateState climateState)
void syncToClient()
void syncToClient(net.minecraft.entity.player.EntityPlayerMP player)
void markLocatableDirty()