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.ServerPlayerEntity
net.minecraft.util.math.BlockPos
getPos()
net.minecraft.block.BlockState
getState()
net.minecraft.server.world.ServerWorld
getWorld()
boolean
void
setCancelled
(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:
isCancelled
in interfaceEvent
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceEvent
-