Interface AntiXrayAdapter


public interface AntiXrayAdapter
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    callBlockChange(World world, int x, int y, int z, Material material)
    Call a block change to the AntiXray system It should be at Level.setBlock(BlockPos, BlockState, flags, maxUpdateDepth) Or World.setTypeAndData(BlockPosition, IBlockData, i) in legacy spigot versions
    void
    callPlayerLeftClickBlock(World world, Player player, int x, int y, int z)
    Call a player left click block to the AntiXray system It should be at ServerPlayerGameMode.handleBlockBreakAction(BlockPos, ServerboundPlayerActionPacket.Action, Direction, worldHeight, sequence) Or PlayerInteractManager.a(BlockPosition, EnumDirection) in legacy spigot versions
  • Method Details

    • callBlockChange

      void callBlockChange(World world, int x, int y, int z, Material material)
      Call a block change to the AntiXray system It should be at Level.setBlock(BlockPos, BlockState, flags, maxUpdateDepth) Or World.setTypeAndData(BlockPosition, IBlockData, i) in legacy spigot versions
      Parameters:
      world - the bukkit world
      x - the x
      y - the y
      z - the z
      material - the bukkit material
    • callPlayerLeftClickBlock

      void callPlayerLeftClickBlock(World world, Player player, int x, int y, int z)
      Call a player left click block to the AntiXray system It should be at ServerPlayerGameMode.handleBlockBreakAction(BlockPos, ServerboundPlayerActionPacket.Action, Direction, worldHeight, sequence) Or PlayerInteractManager.a(BlockPosition, EnumDirection) in legacy spigot versions
      Parameters:
      world - the bukkit world
      player - the bukkit player
      x - the x
      y - the y
      z - the z