Interface CubeMob
- All Superinterfaces:
Ageable, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Mob, SchedulerSource, Sound.Emitter, Sound.Source.Provider
- All Known Subinterfaces:
MagmaCube, Slime, SulfurCube
A cube that hops around: a slime, a magma cube or a sulfur cube. Its size sets how big it is,
its health, its speed and how hard it hits; a cube bigger than 1 splits into cubes of half its
size once dead.
A cube has an age like the animals: a baby is half as big as its size says. Only sulfur cubes are born babies and grow up.
Like every entity, change it from the region thread owning its chunk.
- Since:
- 0.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe biggest size of a cube.static final intThe smallest size of a cube.Fields inherited from interface Ageable
BABY_START_AGE -
Method Summary
Methods inherited from interface Ageable
age, isAgeLocked, isBaby, setAge, setAgeLocked, setBabyMethods inherited from interface Entity
chunk, displayName, entityId, isRemoved, location, remove, server, teleport, teleport, teleport, type, uuid, worldMethods inherited from interface HoverEventSource
asHoverEvent, asHoverEventMethods inherited from interface LivingEntity
absorptionAmount, activeEffects, addEffect, armor, armorToughness, clearEffects, damage, effect, equipment, fireTicks, hasEffect, headYaw, heal, health, isAlive, isDead, kill, knockbackResistance, maxHealth, removeEffect, setAbsorptionAmount, setFireTicks, setHeadYaw, setHealthMethods inherited from interface Mob
attackDamage, behaviour, behaviours, definition, distanceSqTo, followRange, goals, hasLineOfSightTo, height, lookAt, lookAt, movementSpeed, navigateTo, navigation, nearestPlayer, onGround, playSound, setFollowRange, setMoveSpeed, setTarget, setVelocity, target, velocityX, velocityY, velocityZ, widthMethods inherited from interface SchedulerSource
execute, execute, executeDelayed, executeDelayed, isOwnedByCurrentThreadMethods inherited from interface Sound.Source.Provider
soundSource
-
Field Details
-
MIN_SIZE
static final int MIN_SIZEThe smallest size of a cube.- Since:
- 0.1.0
- See Also:
-
MAX_SIZE
static final int MAX_SIZEThe biggest size of a cube.- Since:
- 0.1.0
- See Also:
-
-
Method Details
-
size
-
setSize
-
isTiny
-