Interaction
Interaction representation with a block entity or entity.
Parameters
container
The identifier of the interacted container. Same as in the /summon
or /setblock
commands
texture
The texture to be replaced.
screen
The active GUI screen
data
The details of the interaction
Constructors
Link copied to clipboard
public Interaction Interaction(Identifier container, Identifier texture, Screen screen, Interaction.Data data)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final static Boolean prepare(Identifier container, PlayerEntity player, World world, Hand hand, HitResult hitResult, Object extra)
public final static Boolean prepare(Identifier container, PlayerEntity player, World world, Hand hand, HitResult hitResult, Object extra, BlockEntity blockEntity)
public final static Boolean prepare(Identifier container, PlayerEntity player, World world, Hand hand, HitResult hitResult, Object extra, Entity entity)