26 int a_BlockX,
int a_BlockY,
int a_BlockZ,
eBlockFace a_BlockFace
132 int a_BlockX,
int a_BlockY,
int a_BlockZ,
eBlockFace a_BlockFace
BLOCKTYPE GetBlock(Vector3i a_BlockPos)
Returns the block type at the specified position.
cItemThrowableHandler(int a_ItemType, cProjectileEntity::eKind a_ProjectileKind, double a_SpeedCoeff)
bool RemoveOneEquippedItem(void)
Removes one item out of the currently equipped item stack, returns true if successful, false if empty-handed.
MTRand & GetRandomProvider()
Returns the current thread's random number source.
cItemThrowableHandler super
const cItem & GetEquippedItem(void) const
virtual bool OnItemUse(cWorld *a_World, cPlayer *a_Player, cBlockPluginInterface &a_PluginInterface, const cItem &a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace) override
Called when the player tries to use the item (right mouse button).
eKind
The kind of the projectile.
Vector3d GetThrowStartPos(void) const
Returns the position where projectiles thrown by this player should start, player eye position + adju...
double GetHeight(void) const
cItemFireworkHandler(void)
virtual void BroadcastSoundEffect(const AString &a_SoundName, Vector3d a_Position, float a_Volume, float a_Pitch, const cClientHandle *a_Exclude=nullptr) override
cItemThrowableHandler super
This interface is used to decouple block handlers from the cPluginManager dependency through cWorld...
RealType RandReal(RealType a_Min, RealType a_Max)
Return a random RealType in the range [a_Min, a_Max).
cItemThrowableHandler super
virtual bool OnItemUse(cWorld *a_World, cPlayer *a_Player, cBlockPluginInterface &a_PluginInterface, const cItem &a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace) override
Called when the player tries to use the item (right mouse button).
Vector3d GetLookVector(void) const
Vector3< double > Vector3d
UInt32 CreateProjectile(Vector3d a_Pos, cProjectileEntity::eKind a_Kind, cEntity *a_Creator, const cItem *a_Item, const Vector3d *a_Speed=nullptr)
Creates a projectile of the specified type.
cItemThrowableHandler super
cProjectileEntity::eKind m_ProjectileKind
eBlockFace
Block face constants, used in PlayerDigging and PlayerBlockPlacement packets and bbox collision calc...
cItemSnowballHandler(void)
const Vector3d & GetPosition(void) const
Exported in ManualBindings.
bool IsGameModeCreative(void) const
Returns true if the player is in Creative mode, either explicitly, or by inheriting from current worl...
cItemThrowableHandler super
cInventory & GetInventory(void)
static const UInt32 INVALID_ID
Special ID that is considered an "invalid value", signifying no entity.
cItemBottleOEnchantingHandler(void)
cItemEnderPearlHandler(void)