public class TILItemUseContext
extends java.lang.Object
| Constructor and Description |
|---|
TILItemUseContext(PlayerAPI<?,?> player,
WorldAPI<?> world,
BlockPosAPI<?> pos,
BlockStateAPI<?> state,
Hand hand,
Facing facing) |
| Modifier and Type | Method and Description |
|---|---|
ActionResult |
onUse(@Nullable java.util.function.Function<TILItemUseContext,ActionResult> onUse) |
static TILItemUseContext |
wrap(java.lang.Object player,
java.lang.Object world,
java.lang.Object pos,
java.lang.Object state,
java.lang.Object hand,
java.lang.Object facing) |
public TILItemUseContext(PlayerAPI<?,?> player, WorldAPI<?> world, BlockPosAPI<?> pos, BlockStateAPI<?> state, Hand hand, Facing facing)
public static TILItemUseContext wrap(java.lang.Object player, java.lang.Object world, java.lang.Object pos, java.lang.Object state, java.lang.Object hand, java.lang.Object facing)
public ActionResult onUse(@Nullable @Nullable java.util.function.Function<TILItemUseContext,ActionResult> onUse)