Class PlayerBlockBreakEvent
java.lang.Object
net.vitacraft.serverlibraries.api.event.events.blocks.PlayerBlockBreakEvent
- All Implemented Interfaces:
Event
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerBlockBreakEvent(net.minecraft.server.world.ServerWorld world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, net.minecraft.server.network.ServerPlayerEntity player) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.server.network.ServerPlayerEntitynet.minecraft.util.math.BlockPosgetPos()net.minecraft.block.BlockStategetState()net.minecraft.server.world.ServerWorldgetWorld()booleanvoidsetCancelled(boolean cancelled)
-
Constructor Details
-
PlayerBlockBreakEvent
public PlayerBlockBreakEvent(net.minecraft.server.world.ServerWorld world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, net.minecraft.server.network.ServerPlayerEntity player)
-
-
Method Details
-
getWorld
public net.minecraft.server.world.ServerWorld getWorld() -
getPos
public net.minecraft.util.math.BlockPos getPos() -
getState
public net.minecraft.block.BlockState getState() -
getPlayer
public net.minecraft.server.network.ServerPlayerEntity getPlayer() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceEvent
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceEvent
-