Modifier and Type | Method and Description |
---|---|
private ActionResultType |
CakeBlock.eat(IWorld p_226911_1_,
BlockPos p_226911_2_,
BlockState p_226911_3_,
PlayerEntity p_226911_4_) |
ActionResultType |
DoorBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
TNTBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
AbstractBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_)
Deprecated.
|
ActionResultType |
BeehiveBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
CommandBlockBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
BeaconBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
BedBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
SweetBerryBushBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
ComposterBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
RedstoneOreBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
LeverBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
DispenserBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
RepeaterBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
CraftingTableBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
CartographyTableBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
ShulkerBoxBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
JigsawBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
StructureBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
MovingPistonBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
PumpkinBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
DaylightDetectorBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
BarrelBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
ComparatorBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
BellBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
HopperBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
EnchantingTableBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
EnderChestBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
FletchingTableBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
CampfireBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
AnvilBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
AbstractButtonBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
RespawnAnchorBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
FenceGateBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
DragonEggBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
FlowerPotBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
GrindstoneBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
BrewingStandBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
RedstoneWireBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
TrapDoorBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
NoteBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
StairsBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
JukeboxBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
AbstractSignBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
CakeBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
SmithingTableBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
FenceBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
CauldronBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
StonecutterBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
LecternBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
ChestBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
LoomBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
AbstractFurnaceBlock.use(BlockState p_225533_1_,
World p_225533_2_,
BlockPos p_225533_3_,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
AbstractBlock.AbstractBlockState.use(World p_227031_1_,
PlayerEntity p_227031_2_,
Hand p_227031_3_,
BlockRayTraceResult p_227031_4_) |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
PlayerController.interact(PlayerEntity p_187097_1_,
Entity p_187097_2_,
Hand p_187097_3_) |
ActionResultType |
PlayerController.interactAt(PlayerEntity p_187102_1_,
Entity p_187102_2_,
EntityRayTraceResult p_187102_3_,
Hand p_187102_4_) |
ActionResultType |
PlayerController.useItem(PlayerEntity p_187101_1_,
World p_187101_2_,
Hand p_187101_3_) |
ActionResultType |
PlayerController.useItemOn(ClientPlayerEntity p_217292_1_,
ClientWorld p_217292_2_,
Hand p_217292_3_,
BlockRayTraceResult p_217292_4_) |
Modifier and Type | Method and Description |
---|---|
private ActionResultType |
MobEntity.checkAndHandleImportantInteractions(PlayerEntity p_233661_1_,
Hand p_233661_2_) |
ActionResultType |
MobEntity.interact(PlayerEntity p_184230_1_,
Hand p_184230_2_) |
ActionResultType |
Entity.interact(PlayerEntity p_184230_1_,
Hand p_184230_2_) |
ActionResultType |
Entity.interactAt(PlayerEntity p_184199_1_,
Vector3d p_184199_2_,
Hand p_184199_3_) |
protected ActionResultType |
MobEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
LeashKnotEntity.interact(PlayerEntity p_184230_1_,
Hand p_184230_2_) |
ActionResultType |
BoatEntity.interact(PlayerEntity p_184230_1_,
Hand p_184230_2_) |
ActionResultType |
ItemFrameEntity.interact(PlayerEntity p_184230_1_,
Hand p_184230_2_) |
ActionResultType |
ArmorStandEntity.interactAt(PlayerEntity p_184199_1_,
Vector3d p_184199_2_,
Hand p_184199_3_) |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
FurnaceMinecartEntity.interact(PlayerEntity p_184230_1_,
Hand p_184230_2_) |
ActionResultType |
ContainerMinecartEntity.interact(PlayerEntity p_184230_1_,
Hand p_184230_2_) |
ActionResultType |
CommandBlockMinecartEntity.interact(PlayerEntity p_184230_1_,
Hand p_184230_2_) |
ActionResultType |
MinecartEntity.interact(PlayerEntity p_184230_1_,
Hand p_184230_2_) |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
VillagerEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
WanderingTraderEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
Modifier and Type | Method and Description |
---|---|
protected ActionResultType |
CreeperEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
HoglinEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
ZombieVillagerEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
Modifier and Type | Method and Description |
---|---|
static ActionResultType |
PiglinTasks.mobInteract(PiglinEntity p_234471_0_,
PlayerEntity p_234471_1_,
Hand p_234471_2_) |
ActionResultType |
PiglinEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
Modifier and Type | Method and Description |
---|---|
protected ActionResultType |
SnowGolemEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
ParrotEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
OcelotEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
CatEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
MooshroomEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
PandaEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
StriderEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
WolfEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
CowEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
PigEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
protected ActionResultType |
DolphinEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
protected ActionResultType |
IronGolemEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
SheepEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
AnimalEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
Modifier and Type | Method and Description |
---|---|
protected ActionResultType |
AbstractFishEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
AbstractHorseEntity.fedFood(PlayerEntity p_241395_1_,
ItemStack p_241395_2_) |
ActionResultType |
AbstractChestedHorseEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
ZombieHorseEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
SkeletonHorseEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
ActionResultType |
HorseEntity.mobInteract(PlayerEntity p_230254_1_,
Hand p_230254_2_) |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
PlayerEntity.interactOn(Entity p_190775_1_,
Hand p_190775_2_) |
Modifier and Type | Method and Description |
---|---|
private ActionResultType |
ItemStack.onItemUse(ItemUseContext p_196084_1_,
java.util.function.Function<ItemUseContext,ActionResultType> callback) |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
DemoPlayerInteractionManager.useItem(ServerPlayerEntity p_187250_1_,
World p_187250_2_,
ItemStack p_187250_3_,
Hand p_187250_4_) |
ActionResultType |
PlayerInteractionManager.useItem(ServerPlayerEntity p_187250_1_,
World p_187250_2_,
ItemStack p_187250_3_,
Hand p_187250_4_) |
ActionResultType |
DemoPlayerInteractionManager.useItemOn(ServerPlayerEntity p_219441_1_,
World p_219441_2_,
ItemStack p_219441_3_,
Hand p_219441_4_,
BlockRayTraceResult p_219441_5_) |
ActionResultType |
PlayerInteractionManager.useItemOn(ServerPlayerEntity p_219441_1_,
World p_219441_2_,
ItemStack p_219441_3_,
Hand p_219441_4_,
BlockRayTraceResult p_219441_5_) |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
CommandBlockLogic.usedBy(PlayerEntity p_175574_1_) |
Modifier and Type | Field and Description |
---|---|
private ActionResultType |
ActionResult.result |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
ActionResult.getResult() |
static ActionResultType |
ActionResultType.sidedSuccess(boolean p_233537_0_) |
static ActionResultType |
ActionResultType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ActionResultType[] |
ActionResultType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
ActionResult(ActionResultType p_i46821_1_,
T p_i46821_2_) |
Modifier and Type | Method and Description |
---|---|
static ActionResultType |
ForgeHooks.onInteractEntity(PlayerEntity player,
Entity entity,
Hand hand) |
static ActionResultType |
ForgeHooks.onInteractEntityAt(PlayerEntity player,
Entity entity,
RayTraceResult ray,
Hand hand) |
static ActionResultType |
ForgeHooks.onInteractEntityAt(PlayerEntity player,
Entity entity,
Vector3d vec3d,
Hand hand) |
static ActionResultType |
ForgeHooks.onItemRightClick(PlayerEntity player,
Hand hand) |
static ActionResultType |
ForgeHooks.onPlaceItemIntoWorld(ItemUseContext context) |
Modifier and Type | Method and Description |
---|---|
default ActionResultType |
IForgeItem.onItemUseFirst(ItemStack stack,
ItemUseContext context)
This is called when the item is used, before the block is activated.
|
default ActionResultType |
IForgeItemStack.onItemUseFirst(ItemUseContext context) |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
CustomRespawnTest.CustomRespawnBlock.use(BlockState p_225533_1_,
World world,
BlockPos pos,
PlayerEntity p_225533_4_,
Hand p_225533_5_,
BlockRayTraceResult p_225533_6_) |
ActionResultType |
FullPotsAccessorDemo.DioriteFlowerPotBlock.use(BlockState state,
World level,
BlockPos pos,
PlayerEntity player,
Hand hand,
BlockRayTraceResult hit) |
Modifier and Type | Field and Description |
---|---|
private ActionResultType |
PlayerInteractEvent.cancellationResult |
Modifier and Type | Method and Description |
---|---|
ActionResultType |
PlayerInteractEvent.getCancellationResult() |
Modifier and Type | Method and Description |
---|---|
void |
PlayerInteractEvent.setCancellationResult(ActionResultType result)
Set the EnumActionResult that will be returned to vanilla if the event is cancelled, instead of calling the relevant
method of the event.
|