Class UseBlockEvent
java.lang.Object
dev.ultreon.mods.xinexlib.event.interact.InteractEvent
dev.ultreon.mods.xinexlib.event.interact.UseBlockEvent
- All Implemented Interfaces:
BlockEvent,BlockStateEvent,PositionalBlockEvent,CancelableValue<net.minecraft.world.InteractionResult>,EntityEvent,PositionEvent,LevelEvent,PlayerEvent
-
Field Summary
Fields inherited from class dev.ultreon.mods.xinexlib.event.interact.InteractEvent
canceled, hand, interactionResult -
Constructor Summary
ConstructorsConstructorDescriptionUseBlockEvent(net.minecraft.world.phys.BlockHitResult hitResult, net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level) -
Method Summary
Methods inherited from class dev.ultreon.mods.xinexlib.event.interact.InteractEvent
cancel, get, getHand, isCanceledMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.ultreon.mods.xinexlib.event.block.BlockStateEvent
getBlockMethods inherited from interface dev.ultreon.mods.xinexlib.event.entity.EntityEvent
getPositionMethods inherited from interface dev.ultreon.mods.xinexlib.event.player.PlayerEvent
getEntity
-
Constructor Details
-
UseBlockEvent
public UseBlockEvent(net.minecraft.world.phys.BlockHitResult hitResult, net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level level)
-
-
Method Details
-
getBlockPosition
public net.minecraft.core.BlockPos getBlockPosition()- Specified by:
getBlockPositionin interfacePositionalBlockEvent
-
getState
public net.minecraft.world.level.block.state.BlockState getState()- Specified by:
getStatein interfaceBlockStateEvent
-
getLevel
public net.minecraft.world.level.Level getLevel()- Specified by:
getLevelin interfaceEntityEvent- Specified by:
getLevelin interfaceLevelEvent
-
getPlayer
public net.minecraft.world.entity.player.Player getPlayer()- Specified by:
getPlayerin interfacePlayerEvent
-
equals
- Overrides:
equalsin classInteractEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classInteractEvent
-
toString
-