Interface Chicken
- All Superinterfaces:
Ageable, Animal, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Mob, SchedulerSource, Sound.Emitter, Sound.Source.Provider
A chicken (
minecraft:chicken): it lays an egg every five to ten minutes, flutters down
slowly, and looks and sounds after the biome it spawned in.
Like every entity, change it from the region thread owning its chunk.
- Since:
- 0.1.0
-
Field Summary
Fields inherited from interface Ageable
BABY_START_AGEFields inherited from interface Animal
LOVE_TICKS -
Method Summary
Modifier and TypeMethodDescriptionegg()Returns the egg this chicken lays.integgTime()Returns in how many ticks this chicken lays its next egg.booleanReturnstruefor the mount of a chicken jockey.voidsetChickenJockey(boolean chickenJockey) Makes this chicken the mount of a chicken jockey, or a plain chicken again.voidsetEggTime(int ticks) Changes when this chicken lays its next egg.voidsetSoundVariant(TypedKey<ChickenSoundVariant> soundVariant) Changes how this chicken sounds.voidsetVariant(TypedKey<ChickenVariant> variant) Changes how this chicken looks, and so the eggs it lays.Returns how this chicken sounds.variant()Returns how this chicken looks.Methods inherited from interface Ageable
age, isAgeLocked, isBaby, setAge, setAgeLocked, setBabyMethods inherited from interface Animal
inLoveTime, isFood, isInLove, isPanicking, loveCause, resetLove, setInLoveMethods 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
-
Method Details
-
variant
TypedKey<ChickenVariant> variant()Returns how this chicken looks.- Returns:
- how this chicken looks
- Since:
- 0.1.0
-
setVariant
Changes how this chicken looks, and so the eggs it lays.- Parameters:
variant- the new look- Since:
- 0.1.0
-
soundVariant
TypedKey<ChickenSoundVariant> soundVariant()Returns how this chicken sounds.- Returns:
- how this chicken sounds
- Since:
- 0.1.0
-
setSoundVariant
Changes how this chicken sounds.- Parameters:
soundVariant- the new sounds- Since:
- 0.1.0
-
egg
-
eggTime
int eggTime()Returns in how many ticks this chicken lays its next egg.- Returns:
- in how many ticks this chicken lays its next egg
- Since:
- 0.1.0
-
setEggTime
void setEggTime(int ticks) Changes when this chicken lays its next egg.- Parameters:
ticks- in how many ticks- Since:
- 0.1.0
-
isChickenJockey
boolean isChickenJockey()Returnstruefor the mount of a chicken jockey.: it lays no egg- Returns:
truefor the mount of a chicken jockey- Since:
- 0.1.0
-
setChickenJockey
void setChickenJockey(boolean chickenJockey) Makes this chicken the mount of a chicken jockey, or a plain chicken again.- Parameters:
chickenJockey-truefor a mount- Since:
- 0.1.0
-