cMobSpawnerEntity


Index:
Articles
Classes
Hooks

Quick navigation:
cArrowEntity
cBeaconEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
cCommandBlockEntity
cCompositeChat
cCraftingGrid
cCraftingRecipe
cCryptoHash
cCuboid
cDispenserEntity
cDropperEntity
cDropSpenserEntity
cEnchantments
cEntity
cEntityEffect
cExpBottleEntity
cFile
cFireChargeEntity
cFireworkEntity
cFloater
cFlowerPotEntity
cFurnaceEntity
cGhastFireballEntity
cHangingEntity
cHopperEntity
cIniFile
cInventory
cItem
cItemFrame
cItemGrid
cItems
cJson
cJukeboxEntity
cLineBlockTracer
cLuaWindow
cMap
cMapManager
cMobHeadEntity
cMobSpawnerEntity
cMojangAPI
cMonster
cNetwork
cNoteEntity
cObjective
cPainting
cPawn
cPickup
cPlayer
cPlugin
cPluginLua
cPluginManager
cProjectileEntity
cRankManager
cRoot
cScoreboard
cServer
cServerHandle
cSignEntity
cSplashPotionEntity
cStatManager
cStringCompression
cTCPLink
cTeam
cThrownEggEntity
cThrownEnderPearlEntity
cThrownSnowballEntity
cTNTEntity
cTracer
cUDPEndpoint
cUrlClient
cUrlParser
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
sqlite3
TakeDamageInfo
tolua
Vector3d
Vector3f
Vector3i
Globals

Contents


cMobSpawnerEntity class

This class represents a mob spawner block entity in the world.


Inheritance

This class inherits from the following parent classes:


Functions

NameParametersReturn valueNotes
GetEntity
MobTypeeMonsterType
Returns the entity type that will be spawn by this mob spawner.
GetNearbyMonsterNum
MobTypeeMonsterType
number
Returns the amount of this monster type in a 8-block radius (Y: 4-block radius).
GetNearbyPlayersNum
number
Returns the amount of the nearby players in a 16-block radius.
GetSpawnDelay
number
Returns the spawn delay. This is the tick delay that is needed to spawn new monsters.
ResetTimer Sets the spawn delay to a new random value.
SetEntity
MobTypeeMonsterType
Sets the type of the mob that will be spawned by this mob spawner.
SetSpawnDelay
SpawnDelayTicksnumber
Sets the spawn delay.
SpawnEntity Spawns the entity. This function automaticly change the spawn delay!
UpdateActiveState Upate the active flag from the mob spawner. This function is called every 5 seconds from the Tick() function.

Functions inherited from cBlockEntity

NameParametersReturn valueNotes
GetBlockType
BLOCKTYPEnumber
Returns the blocktype which is represented by this blockentity. This is the primary means of type-identification
GetChunkX
number
Returns the chunk X-coord of the block entity's chunk
GetChunkZ
number
Returns the chunk Z-coord of the block entity's chunk
GetPos
Vector3i
Returns the name of the parent class, or empty string if no parent class.
GetPosX
number
Returns the block X-coord of the block entity's block
GetPosY
number
Returns the block Y-coord of the block entity's block
GetPosZ
number
Returns the block Z-coord of the block entity's block
GetRelX
number
Returns the relative X coord of the block entity's block within the chunk
GetRelZ
number
Returns the relative Z coord of the block entity's block within the chunk
GetWorld
cWorld
Returns the world to which the block entity belongs
Generated on 2017-03-29 13:00:06, Build ID Unknown, Commit approx: 5dc0189a160a9ab4d6c9c2865fc8ff5d7ca32d69