Skip to content

Class "GridEntity"⚓︎

Modified Functions⚓︎

ToTNT ()⚓︎

GridEntityTNT ToTNT ( )⚓︎

Altered function to improve GridEntity Update callback behavior.


Functions⚓︎

GetRenderPosition ()⚓︎

Vector GetRenderPosition ( )⚓︎


GetWaterClipFlags ()⚓︎

WaterClipFlag GetWaterClipFlags ( )⚓︎

Gets a bitset that informs whether this GridEntity renders above or below water.

Vanilla state can be restored with ResetWaterClipFlags().


HurtDamage ()⚓︎

void HurtDamage ( Entity Entity, int PlayerDamage, int DamageFlags, float Damage, boolean ignoreGridCollision )⚓︎


IsBreakableRock ()⚓︎

void IsBreakableRock ( )⚓︎


ResetWaterClipFlags ()⚓︎

void ResetWaterClipFlags ( )⚓︎

Restores water rendering to the default vanilla state. See SetWaterClipFlags().


SetWaterClipFlags ()⚓︎

void SetWaterClipFlags ( WaterClipFlag Flags )⚓︎

Allows modification of whether this GridEntity renders above or below water.

Note that this will also disable any natural vanilla changes to these flags, such as a poop switching to rendering below water after being broken.

Vanilla state can be restored with ResetWaterClipFlags().


ToDecoration ()⚓︎

GridEntityDecoration ToDecoration ( )⚓︎

Used to cast a GridEntity object to a GridEntityDecoration object.

Return behavior

If the conversion is not successful, this function returns nil.


ToFire ()⚓︎

GridEntityFire ToFire ( )⚓︎

Used to cast a GridEntity object to a GridEntityFire object.

Return behavior

If the conversion is not successful, this function returns nil.


ToGravity ()⚓︎

GridEntityGravity ToGravity ( )⚓︎

Used to cast a GridEntity object to a GridEntityGravity object.

Return behavior

If the conversion is not successful, this function returns nil.


ToLock ()⚓︎

GridEntityLock ToLock ( )⚓︎

Used to cast a GridEntity object to a GridEntityLock object.

Return behavior

If the conversion is not successful, this function returns nil.


ToStairs ()⚓︎

GridEntityStairs ToStairs ( )⚓︎

Used to cast a GridEntity object to a GridEntityStairs object.

Return behavior

If the conversion is not successful, this function returns nil.


ToStatue ()⚓︎

GridEntityStatue ToStatue ( )⚓︎

Used to cast a GridEntity object to a GridEntityStatue object.

Return behavior

If the conversion is not successful, this function returns nil.


ToTeleporter ()⚓︎

GridEntityTeleporter ToTeleporter ( )⚓︎

Used to cast a GridEntity object to a GridEntityTeleporter object.

Return behavior

If the conversion is not successful, this function returns nil.


ToTrapDoor ()⚓︎

GridEntityTrapDoor ToTrapDoor ( )⚓︎

Used to cast a GridEntity object to a GridEntityTrapDoor object.

Return behavior

If the conversion is not successful, this function returns nil.


ToWall ()⚓︎

GridEntityWall ToWall ( )⚓︎

Used to cast a GridEntity object to a GridEntityWall object.

Return behavior

If the conversion is not successful, this function returns nil.


ToWeb ()⚓︎

GridEntityWeb ToWeb ( )⚓︎

Used to cast a GridEntity object to a GridEntityWeb object.

Return behavior

If the conversion is not successful, this function returns nil.