Uses of Class
alexiil.mc.lib.multipart.api.event.MultipartEvent
Package | Description |
---|---|
alexiil.mc.lib.multipart.api |
LibMultiPart's API.
|
alexiil.mc.lib.multipart.api.event | |
alexiil.mc.lib.multipart.api.property |
-
Uses of MultipartEvent in alexiil.mc.lib.multipart.api
Classes in alexiil.mc.lib.multipart.api with type parameters of type MultipartEvent Modifier and Type Class Description static class
MultipartEventBus.ContextlessListener<E extends MultipartEvent & ContextlessEvent>
static class
MultipartEventBus.ExternalListener<E extends MultipartEvent>
static interface
MultipartEventBus.ListenerInfo<E extends MultipartEvent>
Information on a single registered listener.Methods in alexiil.mc.lib.multipart.api with type parameters of type MultipartEvent Modifier and Type Method Description default <E extends MultipartEvent & ContextlessEvent>
MultipartEventBus.ListenerInfo<E>MultipartEventBus. addContextlessListener(java.lang.Object key, java.lang.Class<E> clazz, java.lang.Runnable listener)
Adds a listener for a specifiedMultipartEvent
that also implementsContextlessEvent
with aRunnable
.default <E extends MultipartEvent>
MultipartEventBus.ListenerInfo<E>MultipartEventBus. addExternalListener(java.lang.Object key, java.lang.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(java.lang.Object key, java.lang.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(java.lang.Object key, java.lang.Class<E> clazz, java.lang.Runnable listener)
Adds a listener for a specifiedMultipartEvent
that also implementsContextlessEvent
with aRunnable
.<E extends MultipartEvent>
java.util.List<? extends MultipartEventBus.ListenerInfo<? extends E>>MultipartEventBus. getListeners(java.lang.Class<E> clazz)
Methods in alexiil.mc.lib.multipart.api that return types with arguments of type MultipartEvent Modifier and Type Method Description java.util.List<MultipartEventBus.ListenerInfo<? extends MultipartEvent>>
MultipartEventBus. getListenersForKey(java.lang.Object key)
Methods in alexiil.mc.lib.multipart.api with parameters of type MultipartEvent Modifier and Type Method Description default 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.Method parameters in alexiil.mc.lib.multipart.api with type arguments of type MultipartEvent Modifier and Type Method Description default boolean
MultipartEventBus. hasAnyListenersFor(java.lang.Class<? extends MultipartEvent> clazz)
-
Uses of MultipartEvent in alexiil.mc.lib.multipart.api.event
Classes in alexiil.mc.lib.multipart.api.event with type parameters of type MultipartEvent Modifier and Type Interface Description interface
MultipartEventExternalListener<E extends MultipartEvent>
class
PartListenerAdded<E extends MultipartEvent>
Fired wheneverMultipartEventBus.addListener(Object, Class, EventListener)
is called.class
PartListenerRemoved<E extends MultipartEvent>
Fired wheneverMultipartEventBus.removeListeners(Object)
is called.Subclasses of MultipartEvent in alexiil.mc.lib.multipart.api.event Modifier and Type Class Description class
NeighbourUpdateEvent
Fired when a neighbouring block was updated.class
PartAddedEvent
Fired whenever anAbstractPart
is added to aMultipartContainer
.class
PartContainerState
Fired when the state of a container's block entity changes.static class
PartContainerState.ChunkUnload
static class
PartContainerState.Invalidate
Fired inBlockEntity.markRemoved()
static class
PartContainerState.Remove
Fired inAbstractBlock.onStateReplaced(BlockState, World, BlockPos, BlockState, boolean)
static class
PartContainerState.Validate
Fired inBlockEntity.cancelRemoval()
class
PartEventEntityCollide
Fired inAbstractBlock.onEntityCollision(BlockState, World, BlockPos, Entity)
.class
PartListenerAdded<E extends MultipartEvent>
Fired wheneverMultipartEventBus.addListener(Object, Class, EventListener)
is called.class
PartListenerRemoved<E extends MultipartEvent>
Fired wheneverMultipartEventBus.removeListeners(Object)
is called.class
PartOfferedEvent
class
PartRemovedEvent
Fired after a part is removed from a container.class
PartTickEvent
Fired once per block entity tick. -
Uses of MultipartEvent in alexiil.mc.lib.multipart.api.property
Subclasses of MultipartEvent in alexiil.mc.lib.multipart.api.property Modifier and Type Class Description class
PartPropertyChangedEvent<T>