public class EventHelper
extends java.lang.Object
| Constructor and Description |
|---|
EventHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <E extends EventWrapper<?>> |
addListener(EventWrapper.EventType<E> type,
java.util.function.Consumer<E> invoker) |
static <A> Box |
getAABB(A aabb) |
static <A> Box |
getAABB(boolean client,
A aabb) |
static <A> Box |
getAABB(boolean client,
boolean server,
A aabb) |
static <A> Box |
getAABB(EventWrapper.EventType<?> type,
A aabb) |
static <A> ActionResult |
getActionResult(A result) |
static <A> ActionResult |
getActionResult(boolean client,
A result) |
static <A> ActionResult |
getActionResult(boolean client,
boolean server,
A result) |
static <A> ActionResult |
getActionResult(EventWrapper.EventType<?> type,
A result) |
static CommonEventsAPI |
getCommonEventsAPI() |
static <E> EventWrapper.Result |
getEventResult(boolean client,
boolean server,
E result) |
static <E> EventWrapper.Result |
getEventResult(boolean client,
E result) |
static <E> EventWrapper.Result |
getEventResult(E result) |
static <E> EventWrapper.Result |
getEventResult(EventWrapper.EventType<?> type,
E result) |
static CommonEventsAPI |
getEventsAPI(boolean client,
boolean server) |
static <D> @Nullable Facing |
getFacing(boolean client,
boolean server,
D direction) |
static <D> @Nullable Facing |
getFacing(boolean client,
D direction) |
static <D> @Nullable Facing |
getFacing(D direction) |
static <D> @Nullable Facing |
getFacing(EventWrapper.EventType<?> type,
D direction) |
static <H> Hand |
getHand(boolean client,
boolean server,
H hand) |
static <H> Hand |
getHand(boolean client,
H hand) |
static <H> Hand |
getHand(EventWrapper.EventType<?> type,
H hand) |
static <H> Hand |
getHand(H hand) |
static <B> ClientOverlayEventType.OverlayType |
getOverlayBlockType(B blockType) |
static <E> ClientOverlayEventType.OverlayType |
getOverlayElementType(E elementType) |
static CommonEventsAPI |
getServerEventsAPI() |
static <V> Vector3 |
getVec3d(boolean client,
boolean server,
V vector) |
static <V> Vector3 |
getVec3d(boolean client,
V vector) |
static <V> Vector3 |
getVec3d(EventWrapper.EventType<?> type,
V vector) |
static <V> Vector3 |
getVec3d(V vector) |
static RenderContext |
initRenderer(java.util.function.Consumer<RenderContext> setters) |
static void |
initTILListeners(boolean client,
boolean common,
boolean server,
boolean test) |
static <E extends EventWrapper<?>> |
registerWrapperImpl(E wrapper) |
static <A> A |
setAABB(boolean client,
boolean server,
Box box) |
static <A> A |
setAABB(boolean client,
Box box) |
static <A> A |
setAABB(Box box) |
static <A> A |
setAABB(EventWrapper.EventType<?> type,
Box box) |
static <A> A |
setActionResult(boolean client,
boolean server,
java.lang.Object result) |
static <A> A |
setActionResult(boolean client,
java.lang.Object result) |
static <A> A |
setActionResult(EventWrapper.EventType<?> type,
java.lang.Object result) |
static <A> A |
setActionResult(java.lang.Object result) |
static <E> E |
setEventResult(boolean client,
boolean server,
java.lang.Object result) |
static <E> E |
setEventResult(boolean client,
java.lang.Object result) |
static <E> E |
setEventResult(EventWrapper.EventType<?> type,
java.lang.Object result) |
static <E> E |
setEventResult(java.lang.Object result) |
static <D> D |
setFacing(boolean client,
boolean server,
@Nullable Facing facing) |
static <D> D |
setFacing(boolean client,
@Nullable Facing facing) |
static <D> D |
setFacing(EventWrapper.EventType<?> type,
@Nullable Facing facing) |
static <D> D |
setFacing(@Nullable Facing facing) |
static <H> H |
setHand(boolean client,
boolean server,
Hand hand) |
static <H> H |
setHand(boolean client,
Hand hand) |
static <H> H |
setHand(EventWrapper.EventType<?> type,
Hand hand) |
static <H> H |
setHand(Hand hand) |
static <V> V |
setVec3d(boolean client,
boolean server,
Vector3 vector) |
static <V> V |
setVec3d(boolean client,
Vector3 vector) |
static <V> V |
setVec3d(EventWrapper.EventType<?> type,
Vector3 vector) |
static <V> V |
setVec3d(Vector3 vector) |
public static <E extends EventWrapper<?>> void addListener(EventWrapper.EventType<E> type, java.util.function.Consumer<E> invoker)
public static <A> Box getAABB(A aabb)
public static <A> Box getAABB(EventWrapper.EventType<?> type, A aabb)
public static <A> Box getAABB(boolean client, A aabb)
public static <A> Box getAABB(boolean client, boolean server, A aabb)
public static <A> ActionResult getActionResult(A result)
public static <A> ActionResult getActionResult(EventWrapper.EventType<?> type, A result)
public static <A> ActionResult getActionResult(boolean client, A result)
public static <A> ActionResult getActionResult(boolean client, boolean server, A result)
public static CommonEventsAPI getCommonEventsAPI()
public static <E> EventWrapper.Result getEventResult(E result)
public static <E> EventWrapper.Result getEventResult(EventWrapper.EventType<?> type, E result)
public static <E> EventWrapper.Result getEventResult(boolean client, E result)
public static <E> EventWrapper.Result getEventResult(boolean client, boolean server, E result)
public static CommonEventsAPI getEventsAPI(boolean client, boolean server)
@Nullable public static <D> @Nullable Facing getFacing(@Nullable D direction)
@Nullable public static <D> @Nullable Facing getFacing(EventWrapper.EventType<?> type, @Nullable D direction)
@Nullable public static <D> @Nullable Facing getFacing(boolean client, @Nullable D direction)
@Nullable public static <D> @Nullable Facing getFacing(boolean client, boolean server, @Nullable D direction)
public static <H> Hand getHand(H hand)
public static <H> Hand getHand(EventWrapper.EventType<?> type, H hand)
public static <H> Hand getHand(boolean client, H hand)
public static <H> Hand getHand(boolean client, boolean server, H hand)
public static <B> ClientOverlayEventType.OverlayType getOverlayBlockType(B blockType)
public static <E> ClientOverlayEventType.OverlayType getOverlayElementType(E elementType)
public static CommonEventsAPI getServerEventsAPI()
public static <V> Vector3 getVec3d(V vector)
public static <V> Vector3 getVec3d(EventWrapper.EventType<?> type, V vector)
public static <V> Vector3 getVec3d(boolean client, V vector)
public static <V> Vector3 getVec3d(boolean client, boolean server, V vector)
public static RenderContext initRenderer(java.util.function.Consumer<RenderContext> setters)
public static void initTILListeners(boolean client,
boolean common,
boolean server,
boolean test)
public static <E extends EventWrapper<?>> void registerWrapperImpl(E wrapper)
public static <A> A setAABB(Box box)
public static <A> A setAABB(EventWrapper.EventType<?> type, Box box)
public static <A> A setAABB(boolean client,
Box box)
public static <A> A setAABB(boolean client,
boolean server,
Box box)
public static <A> A setActionResult(java.lang.Object result)
public static <A> A setActionResult(EventWrapper.EventType<?> type, java.lang.Object result)
public static <A> A setActionResult(boolean client,
java.lang.Object result)
public static <A> A setActionResult(boolean client,
boolean server,
java.lang.Object result)
public static <E> E setEventResult(java.lang.Object result)
public static <E> E setEventResult(EventWrapper.EventType<?> type, java.lang.Object result)
public static <E> E setEventResult(boolean client,
java.lang.Object result)
public static <E> E setEventResult(boolean client,
boolean server,
java.lang.Object result)
@Nullable
public static <D> D setFacing(@Nullable
@Nullable Facing facing)
@Nullable public static <D> D setFacing(EventWrapper.EventType<?> type, @Nullable @Nullable Facing facing)
@Nullable
public static <D> D setFacing(boolean client,
@Nullable
@Nullable Facing facing)
@Nullable
public static <D> D setFacing(boolean client,
boolean server,
@Nullable
@Nullable Facing facing)
public static <H> H setHand(Hand hand)
public static <H> H setHand(EventWrapper.EventType<?> type, Hand hand)
public static <H> H setHand(boolean client,
Hand hand)
public static <H> H setHand(boolean client,
boolean server,
Hand hand)
public static <V> V setVec3d(Vector3 vector)
public static <V> V setVec3d(EventWrapper.EventType<?> type, Vector3 vector)
public static <V> V setVec3d(boolean client,
Vector3 vector)
public static <V> V setVec3d(boolean client,
boolean server,
Vector3 vector)