Class PlayerBlockBreakEvent

java.lang.Object
net.vitacraft.serverlibraries.api.event.events.blocks.PlayerBlockBreakEvent
All Implemented Interfaces:
Event

public class PlayerBlockBreakEvent extends Object implements Event
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    net.minecraft.server.network.ServerPlayerEntity
     
    net.minecraft.util.math.BlockPos
     
    net.minecraft.block.BlockState
     
    net.minecraft.server.world.ServerWorld
     
    boolean
     
    void
    setCancelled(boolean cancelled)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface Event
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Event