public interface IAirListener
IAirHandlerMachine implementation when it is ticked. Note that all
of these methods have default "no-op" implementations, so override the ones you need to.| Modifier and Type | Method and Description |
|---|---|
default java.util.List<IAirHandlerMachine> |
addConnectedPneumatics(java.util.List<IAirHandlerMachine> airHandlers)
With this method, you can add neighbouring air handlers that aren't physically adjacent, but should be considered
connected for air dispersion logic.
|
default int |
getMaxDispersion(IAirHandlerMachine handler,
net.minecraft.util.Direction dir)
Method fired to get the maximum amount of air allowed to disperse to the given direction.
|
default void |
onAirDispersion(IAirHandlerMachine handler,
net.minecraft.util.Direction dir,
int airDispersed)
Called when air is added to, or removed from a handler, dispersed into/from a certain direction.
|
default void onAirDispersion(IAirHandlerMachine handler, @Nullable net.minecraft.util.Direction dir, int airDispersed)
handler - the air handler in questiondir - the direction of air dispersalairDispersed - the amount of air dispersed to the neighbouring handler (negative when air is being added to this handler)default int getMaxDispersion(IAirHandlerMachine handler, @Nullable net.minecraft.util.Direction dir)
handler - the air handler in questiondir - the direction of dispersaldefault java.util.List<IAirHandlerMachine> addConnectedPneumatics(java.util.List<IAirHandlerMachine> airHandlers)
airHandlers - add extra connected air handlers to this list