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 class
static 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>
class
PartListenerAdded<E extends MultipartEvent>
Fired wheneverMultipartEventBus.addListener(Object, Class, EventListener)
is called.class
PartListenerRemoved<E extends MultipartEvent>
Fired wheneverMultipartEventBus.removeListeners(Object)
is called.Modifier and TypeClassDescriptionclass
Fired when a neighbouring block was updated.class
Fired whenever anAbstractPart
is added to aMultipartContainer
.class
Fired when the state of a container's block entity changes.static class
Fired inUnloadableBlockEntity.onChunkUnload()
.static class
Fired inBlockEntity.markRemoved()
static class
static class
Fired inBlockEntity.cancelRemoval()
class
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
class
Fired after a part is removed from a container.class
Fired once per block entity tick. -
Uses of MultipartEvent in alexiil.mc.lib.multipart.api.property