Interface Sheep
- All Superinterfaces:
Ageable, Animal, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Mob, SchedulerSource, Shearable, Sound.Emitter, Sound.Source.Provider
-
Field Summary
Fields inherited from interface Ageable
BABY_START_AGEFields inherited from interface Animal
LOVE_TICKS -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the colour of this sheep's wool.booleanReturnstruewhile this sheep has its head down, grazing.booleanReturnstruewhile this sheep has no wool.voidDyes this sheep's wool.voidsetSheared(boolean sheared) Takes this sheep's wool away, dropping nothing, or grows it back.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 Shearable
readyForShearing, shearMethods inherited from interface Sound.Source.Provider
soundSource
-
Method Details
-
color
DyeColor color()Returns the colour of this sheep's wool.- Returns:
- the colour of this sheep's wool
- Since:
- 0.1.0
-
setColor
Dyes this sheep's wool.- Parameters:
color- the new colour- Since:
- 0.1.0
-
isSheared
boolean isSheared()Returnstruewhile this sheep has no wool.- Returns:
truewhile this sheep has no wool- Since:
- 0.1.0
-
setSheared
void setSheared(boolean sheared) Takes this sheep's wool away, dropping nothing, or grows it back.- Parameters:
sheared-trueto take it away- Since:
- 0.1.0
-
isGrazing
boolean isGrazing()Returnstruewhile this sheep has its head down, grazing.- Returns:
truewhile this sheep has its head down, grazing- Since:
- 0.1.0
-