मुख्य कंटेंट तक स्किप करें

Class: VoxelHand

This page documents the methods and fields available in the VoxelHand class.

Members

SignatureDescription
VoxelHand()Creates a new instance of VoxelHand.
getCrossHairColor()Returns the current cross hair color.
getCrossHairSize()Returns the current cross hair size.
getCrossHairTexture()Returns the current cross hair texture.
getDistance()Returns the current distance.
getLastHitBlockID()Returns the current last hit block id.
getSelectedBlockID()Returns the current selected block id.
isBlockBroken()Returns whether block broken is true.
isBlockPlaced()Returns whether block placed is true.
isShowCrosshair()Returns whether show crosshair is true.
onBlockBroken(int, int, int, int)Performs the onBlockBroken operation using the provided parameters (blockType, x, y, z).
onBlockPlaced(int, int, int, int)Performs the onBlockPlaced operation using the provided parameters (blockType, x, y, z).
onBlockSelected(int, int, int, int)Performs the onBlockSelected operation using the provided parameters (blockType, x, y, z).
requestBreak()Performs the requestBreak operation.
requestPut()Performs the requestPut operation.
setCrossHairSize(Color)Sets or updates the cross hair size.
setCrossHairSize(int)Sets or updates the cross hair size.
setCrossHairTexture(Texture)Sets or updates the cross hair texture.
setDistance(float)Sets or updates the distance.
setListener(Listener)Sets or updates the listener.
setSelectedBlockID(int)Sets or updates the selected block id.
setShowCrosshair(boolean)Sets or updates the show crosshair.