net.minecraft.entity.passive

public class GoatEntity

extends AnimalEntity

All mapped superinterfaces:

Nameable, EntityLike, UniquelyIdentifiable, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, Attackable, ServerWaypoint, Waypoint, Targeter, EquipmentHolder, Leashable

net.minecraft.world.entity.animal.goat.Goat
net.minecraft.class_6053
net.minecraft.entity.passive.GoatEntity

Field summary

Modifier and TypeField
public static final EntityDimensions
LONG_JUMPING_DIMENSIONS
field_30399
LONG_JUMPING_DIMENSIONS
private static final int
ADULT_ATTACK_DAMAGE
field_34022
DEFAULT_ATTACK_DAMAGE
private static final int
BABY_ATTACK_DAMAGE
field_34023
BABY_ATTACK_DAMAGE
protected static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super GoatEntity>>>
SENSOR_TYPES
field_30400
SENSORS
protected static final com.google.common.collect.ImmutableList<MemoryModuleType<?>>
MEMORY_TYPES
field_30401
MEMORY_MODULES
public static final int
GOAT_FALL_DAMAGE_REDUCTION
field_30402
FALL_DAMAGE_SUBTRACTOR
public static final double
GOAT_SCREAMING_CHANCE
field_30403
SCREAMING_CHANCE
public static final double
UNIHORN_CHANCE
field_39046
field_39046
private static final TrackedData<Boolean>
DATA_IS_SCREAMING_GOAT
field_33486
SCREAMING
private static final TrackedData<Boolean>
DATA_HAS_LEFT_HORN
field_39047
LEFT_HORN
private static final TrackedData<Boolean>
DATA_HAS_RIGHT_HORN
field_39048
RIGHT_HORN
private static final boolean
DEFAULT_IS_SCREAMING
field_57626
DEFAULT_SCREAMING
private static final boolean
DEFAULT_HAS_LEFT_HORN
field_57627
DEFAULT_LEFT_HORN
private static final boolean
DEFAULT_HAS_RIGHT_HORN
field_57628
DEFAULT_RIGHT_HORN
private boolean
isLoweringHead
field_33487
preparingRam
private int
lowerHeadTick
field_33488
headPitch

Constructor summary

ModifierConstructor
public (EntityType<? extends GoatEntity> type, World level)

Method summary

Modifier and TypeMethod
public ItemStack
createHorn()
method_43690()
getGoatHornStack()
protected Brain$Profile<GoatEntity>
brainProvider()
method_28306()
createBrainProfile()
protected Brain<?>
makeBrain(com.mojang.serialization.Dynamic<?> input)
method_18867(com.mojang.serialization.Dynamic<?> arg0)
deserializeBrain(com.mojang.serialization.Dynamic<?> arg0)
public static DefaultAttributeContainer$Builder
createAttributes()
method_35179()
createGoatAttributes()
protected void
ageBoundaryReached()
method_5619()
onGrowUp()
protected int
calculateFallDamage(double fallDistance, float damageModifier)
method_23329(double arg0, float arg1)
computeFallDamage(double arg0, float arg1)
protected SoundEvent
getAmbientSound()
method_5994()
getAmbientSound()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
protected void
playStepSound(BlockPos pos, BlockState blockState)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
protected SoundEvent
getMilkingSound()
method_35180()
getMilkingSound()
public GoatEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
public Brain<GoatEntity>
getBrain()
method_18868()
getBrain()
protected void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public int
getMaxHeadYRot()
method_5986()
getMaxHeadRotation()
public void
setYHeadRot(float yHeadRot)
method_5847(float arg0)
setHeadYaw(float arg0)
protected void
playEatingSound()
method_61458()
playEatSound()
public boolean
isFood(ItemStack itemStack)
method_6481(class_1799 arg0)
isBreedingItem(ItemStack arg0)
public ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
public EntityData
finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, EntitySpawnReason spawnReason, SpawnGroupData groupData)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
public EntityDimensions
getDefaultDimensions(Pose pose)
method_55694(class_4050 arg0)
getBaseDimensions(EntityPose arg0)
protected void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public void
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte arg0)
public void
aiStep()
method_6007()
tickMovement()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public boolean
hasLeftHorn()
method_43538()
hasLeftHorn()
public boolean
hasRightHorn()
method_43539()
hasRightHorn()
public boolean
dropHorn()
method_43540()
dropHorn()
public void
addHorns()
method_43541()
addHorns()
public void
removeHorns()
method_43542()
removeHorns()
public boolean
isScreamingGoat()
method_35178()
isScreaming()
public void
setScreamingGoat(boolean isScreamingGoat)
method_36284(boolean arg0)
setScreaming(boolean screaming)
public float
getRammingXHeadRot()
method_36283()
getHeadPitch()
public static boolean
checkGoatSpawnRules(EntityType<? extends Animal> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
method_38067(class_1299<? extends class_1429> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawn(EntityType<? extends AnimalEntity> entityType, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
public PassiveEntity
getBreedOffspring(ServerLevel level, AgeableMob partner)
method_5613(class_3218 arg0, class_1296 arg1)
createChild(ServerWorld arg0, PassiveEntity arg1)
private static ItemStack
lambda$createHorn$1()
method_61481()
method_61481()
private static ItemStack
lambda$createHorn$0(Holder arg0)
method_61482(class_6880 arg0)
method_61482(RegistryEntry instrument)