Class PlayerPlaceBlockEvent
java.lang.Object
dev.ultreon.mods.xinexlib.event.player.PlayerPlaceBlockEvent
- All Implemented Interfaces:
BlockEvent,BlockStateEvent,PositionalBlockEvent,EntityEvent,PositionEvent,LevelEvent,PlayerEvent,Cancelable
public final class PlayerPlaceBlockEvent
extends Object
implements PlayerEvent, PositionalBlockEvent, Cancelable
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerPlaceBlockEvent(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction placedAgainst, net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player entity, net.minecraft.world.item.context.BlockPlaceContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()booleannet.minecraft.core.BlockPosnet.minecraft.world.item.context.BlockPlaceContextnet.minecraft.world.level.LevelgetLevel()net.minecraft.core.Directionnet.minecraft.world.entity.player.Playernet.minecraft.world.level.block.state.BlockStategetState()inthashCode()booleantoString()Methods 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
-
PlayerPlaceBlockEvent
public PlayerPlaceBlockEvent(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction placedAgainst, net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player entity, net.minecraft.world.item.context.BlockPlaceContext context)
-
-
Method Details
-
getState
public net.minecraft.world.level.block.state.BlockState getState()- Specified by:
getStatein interfaceBlockStateEvent
-
getPlacedAgainst
public net.minecraft.core.Direction getPlacedAgainst() -
getBlockPosition
public net.minecraft.core.BlockPos getBlockPosition()- Specified by:
getBlockPositionin interfacePositionalBlockEvent
-
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
-
getContext
public net.minecraft.world.item.context.BlockPlaceContext getContext() -
isCanceled
public boolean isCanceled()- Specified by:
isCanceledin interfaceCancelable
-
cancel
public void cancel()- Specified by:
cancelin interfaceCancelable
-
equals
-
hashCode
public int hashCode() -
toString
-