32 default:
return false;
49 int a_BlockX,
int a_BlockY,
int a_BlockZ,
eBlockFace a_BlockFace,
50 int a_CursorX,
int a_CursorY,
int a_CursorZ,
BLOCKTYPE GetBlock(Vector3i a_BlockPos)
Returns the block type at the specified position.
unsigned char BLOCKTYPE
The datatype used by blockdata.
virtual FoodInfo GetFoodInfo(const cItem *a_Item) override
Returns the FoodInfo for this item.
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
void AddFaceDirection(int &a_BlockX, int &a_BlockY, int &a_BlockZ, eBlockFace a_BlockFace, bool a_bInverse=false)
cItemSeedsHandler(int a_ItemType)
virtual bool IsPlaceable(void) override
Blocks simply get placed.
virtual bool IsFood(void) override
Indicates if this item is food.
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc...
virtual bool GetPlacementBlockTypeMeta(cWorld *a_World, cPlayer *a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, BLOCKTYPE &a_BlockType, NIBBLETYPE &a_BlockMeta) override
Called when the player right-clicks with this item and IsPlaceable() == true, and OnPlayerPlace() is ...