Uses of Class
alexiil.mc.lib.multipart.api.event.MultipartEvent
Package
Description
LibMultiPart's API.
-
Uses of MultipartEvent in alexiil.mc.lib.multipart.api
Modifier and TypeClassDescriptionstatic final class
static final class
MultipartEventBus.ExternalListener<E extends MultipartEvent>
static interface
MultipartEventBus.ListenerInfo<E extends MultipartEvent>
Information on a single registered listener.Modifier and TypeMethodDescriptiondefault <E extends MultipartEvent & ContextlessEvent>
MultipartEventBus.ListenerInfo<E>MultipartEventBus.addContextlessListener
(Object key, Class<E> clazz, Runnable listener) Adds a listener for a specifiedMultipartEvent
that also implementsContextlessEvent
with aRunnable
.default <E extends MultipartEvent>
MultipartEventBus.ListenerInfo<E>MultipartEventBus.addExternalListener
(Object key, Class<E> clazz, MultipartEventExternalListener<E> listener) Adds a listener for a specifiedMultipartEvent
(and all of it's subclasses), but also passes theMultipartContainer
that the event was fired from ito the event handler.<E extends MultipartEvent>
MultipartEventBus.ListenerInfo<E>MultipartEventBus.addListener
(Object key, Class<E> clazz, EventListener<E> listener) Adds a listener for a specifiedMultipartEvent
(and all of it's subclasses).default <E extends MultipartEvent & ContextlessEvent>
MultipartEventBus.ListenerInfo<E>MultipartEventBus.addRunOnceListener
(Object key, Class<E> clazz, Runnable listener) Adds a listener for a specifiedMultipartEvent
that also implementsContextlessEvent
with aRunnable
.<E extends MultipartEvent>
List<? extends MultipartEventBus.ListenerInfo<? extends E>>MultipartEventBus.getListeners
(Class<E> clazz) Modifier and TypeMethodDescriptionList<MultipartEventBus.ListenerInfo<? extends MultipartEvent>>
MultipartEventBus.getListenersForKey
(Object key) Modifier and TypeMethodDescriptiondefault boolean
MultipartContainer.fireEvent
(MultipartEvent event) Fires the given event on theMultipartContainer.getEventBus()
viaMultipartEventBus.fireEvent(MultipartEvent)
.boolean
MultipartEventBus.fireEvent
(MultipartEvent event) Fires the given event to all currently registered listeners.Modifier and TypeMethodDescriptiondefault boolean
MultipartEventBus.hasAnyListenersFor
(Class<? extends MultipartEvent> clazz) -
Uses of MultipartEvent in alexiil.mc.lib.multipart.api.event
Modifier and TypeInterfaceDescriptioninterface
MultipartEventExternalListener<E extends MultipartEvent>
final class
PartListenerAdded<E extends MultipartEvent>
Fired wheneverMultipartEventBus.addListener(Object, Class, EventListener)
is called.final class
PartListenerRemoved<E extends MultipartEvent>
Fired wheneverMultipartEventBus.removeListeners(Object)
is called.Modifier and TypeClassDescriptionclass
Fired when a neighbouring block was updated inAbstractBlock.getStateForNeighborUpdate(BlockState, Direction, BlockState, WorldAccess, BlockPos, BlockPos)
.class
Fired when a neighbouring block was updated.final class
Fired whenever anAbstractPart
is added to aMultipartContainer
.class
Fired when the state of a container's block entity changes.static final class
Fired inUnloadableBlockEntity.onChunkUnload()
.static final class
Fired inBlockEntity.markRemoved()
static final class
static final class
Fired inBlockEntity.cancelRemoval()
final class
final class
PartListenerAdded<E extends MultipartEvent>
Fired wheneverMultipartEventBus.addListener(Object, Class, EventListener)
is called.final class
PartListenerRemoved<E extends MultipartEvent>
Fired wheneverMultipartEventBus.removeListeners(Object)
is called.final class
final class
Fired after all parts are transformed.final class
Fired once per precipitation tick.final class
Fired before any parts are transformed.final class
Fired once per random display tick.final class
Fired once per random tick.class
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.static final class
static final class
final class
Fired after a part is removed from a container.final class
Fired once per scheduled tick.final class
Fired once per block entity tick.class
Used to check if all parts in a multipart block support a type of transformation.class
Indicates that the given part, along with all other parts in the multipart block, are being transformed by the given transformation.static class
Represents a transformation event for only a simpleBlockMirror
.static class
Represents a transformation event for only a simpleBlockRotation
. -
Uses of MultipartEvent in alexiil.mc.lib.multipart.api.property