Package dev.imanity.antixray.sdk
Interface AntiXrayAdapter
public interface AntiXrayAdapter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 versionsvoid
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
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 worldx
- the xy
- the yz
- the zmaterial
- the bukkit material
-
callPlayerLeftClickBlock
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 worldplayer
- the bukkit playerx
- the xy
- the yz
- the z
-