Interface Endermite
- All Superinterfaces:
Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Mob, SchedulerSource, Sound.Emitter, Sound.Source.Provider
An endermite (
minecraft:endermite): a tiny monster that goes after players, and that the
endermen go after. It vanishes once it has lived two minutes, unless it is persistent.
Like every entity, change it from the region thread owning its chunk.
- Since:
- 0.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intHow many ticks an endermite lives before it vanishes: two minutes. -
Method Summary
Methods 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
-
MAX_LIFE
static final int MAX_LIFEHow many ticks an endermite lives before it vanishes: two minutes.- Since:
- 0.1.0
- See Also:
-
-
Method Details
-
life
int life()Returns how many ticks this endermite has lived., its time as a persistent one left out- Returns:
- how many ticks this endermite has lived
- Since:
- 0.1.0
-
setLife
void setLife(int ticks) Sets how many ticks this endermite has lived: it vanishes once that reaches 2400.- Parameters:
ticks- the time it lived,0or more- Since:
- 0.1.0
-