Mob
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Extending LivingEntity
Mob extends LivingEntity. That means all methods available in LivingEntity are also available in Mob
Methods
Return Type: boolean
Parameter | Type |
---|---|
Parameter leashHolder | Type Player |
Return Type: boolean
Parameter | Type |
---|---|
Parameter weapon | Type ProjectileWeaponItem |
Return Type: boolean
Parameter | Type |
---|---|
Parameter stack | Type ItemStack |
Return Type: boolean
Parameter | Type |
---|---|
Parameter level | Type invalid |
Return Type: boolean
Parameter | Type |
---|---|
Parameter level | Type invalid |
Parameter spawnType | Type MobSpawnType |
Parameter | Type |
---|---|
Parameter broadcastPacket | Type boolean |
Parameter dropLeash | Type boolean |
Return Type: boolean
Parameter | Type |
---|---|
Parameter stack | Type ItemStack |
Return Type: boolean
Parameter | Type |
---|---|
Parameter size | Type int |
Return Type: boolean
Parameter | Type |
---|---|
Parameter entity | Type LivingEntity |
Return Type: boolean
Parameter | Type |
---|---|
Parameter position | Type BlockPos |
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Parameter maxXRotIncrease | Type float |
Parameter maxYRotIncrease | Type float |
Parameter | Type |
---|---|
Parameter restrictCenter | Type BlockPos |
Parameter restrictRadius | Type int |
Parameter | Type |
---|---|
Parameter slot | Type EquipmentSlot |
Parameter chance | Type float |
Parameter | Type |
---|---|
Parameter slot | Type EquipmentSlot |
Parameter | Type |
---|---|
Parameter leashHolder | Type Entity |
Parameter broadcastPacket | Type boolean |
Return Type: boolean
Parameter | Type |
---|---|
Parameter stack | Type ItemStack |
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name aggressive | Type Mob | Has Getter true | Has Setter true |
Name ambientSoundInterval | Type int | Has Getter true | Has Setter false |
Name baby | Type Mob | Has Getter false | Has Setter true |
Name canPickUpLoot | Type boolean | Has Getter true | Has Setter true |
Name getRestrictCenter | Type BlockPos | Has Getter true | Has Setter false |
Name getRestrictRadius | Type float | Has Getter true | Has Setter false |
Name hasRestriction | Type boolean | Has Getter true | Has Setter false |
Name isPersistenceRequired | Type boolean | Has Getter true | Has Setter false |
Name isWithinRestriction | Type boolean | Has Getter true | Has Setter false |
Name leashed | Type boolean | Has Getter true | Has Setter false |
Name leftHanded | Type Mob | Has Getter true | Has Setter true |
Name maxHeadRotSpeed | Type int | Has Getter true | Has Setter false |
Name maxHeadXRot | Type int | Has Getter true | Has Setter false |
Name maxHeadYRot | Type int | Has Getter true | Has Setter false |
Name maxSpawnClusterSize | Type int | Has Getter true | Has Setter false |
Name noAi | Type Mob | Has Getter true | Has Setter true |
Name target | Type Mob | Has Getter false | Has Setter true |