Package alexiil.mc.lib.multipart.api.event
package alexiil.mc.lib.multipart.api.event
-
ClassDescriptionMarker interface for
MultipartEvent
's that don't come with any context: for examplePartTickEvent
is a singleton, so you never care about anything about the event.The base class for all events that take place in aMultipartContainer
.MultipartEventExternalListener<E extends MultipartEvent>Fired when a neighbouring block was updated inAbstractBlock.getStateForNeighborUpdate(BlockState, Direction, BlockState, WorldAccess, BlockPos, BlockPos)
.Fired when a neighbouring block was updated.Fired whenever anAbstractPart
is added to aMultipartContainer
.Fired when the state of a container's block entity changes.Fired inUnloadableBlockEntity.onChunkUnload()
.Fired inBlockEntity.markRemoved()
Fired inBlockEntity.cancelRemoval()
PartListenerAdded<E extends MultipartEvent>Fired wheneverMultipartEventBus.addListener(Object, Class, EventListener)
is called.PartListenerRemoved<E extends MultipartEvent>Fired wheneverMultipartEventBus.removeListeners(Object)
is called.Fired once per precipitation tick.Fired once per random display tick.Fired once per random tick.Fired duringAbstractBlock.getStrongRedstonePower(BlockState, BlockView,BlockPos, Direction)
andAbstractBlock.getWeakRedstonePower(BlockState, BlockView, BlockPos, Direction)
, however the more specific classesPartRedstonePowerEvent.PartStrongRedstonePowerEvent
andPartRedstonePowerEvent.PartWeakRedstonePowerEvent
are only fired during their respective method calls.Event factory.Fired after a part is removed from a container.Fired once per scheduled tick.Fired once per block entity tick.