net.minecraft.entity.mob

public abstract class HostileEntity

extends PathAwareEntity implements Monster

All mapped superinterfaces:

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

net.minecraft.world.entity.monster.Monster
net.minecraft.class_1588
net.minecraft.entity.mob.HostileEntity

Constructor summary

ModifierConstructor
protected (EntityType<? extends HostileEntity> type, World level)

Method summary

Modifier and TypeMethod
public SoundCategory
getSoundSource()
method_5634()
getSoundCategory()
public void
aiStep()
method_6007()
tickMovement()
protected void
updateNoActionTime()
method_16827()
updateDespawnCounter()
protected SoundEvent
getSwimSound()
method_5737()
getSwimSound()
protected SoundEvent
getSwimSplashSound()
method_5625()
getSplashSound()
protected SoundEvent
getHurtSound(DamageSource source)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
getDeathSound()
method_6002()
getDeathSound()
public LivingEntity$FallSounds
getFallSounds()
method_39760()
getFallSounds()
public float
getWalkTargetValue(BlockPos pos, LevelReader level)
method_6144(class_2338 arg0, class_4538 arg1)
getPathfindingFavor(BlockPos arg0, WorldView arg1)
public static boolean
isDarkEnoughToSpawn(ServerLevelAccessor level, BlockPos pos, RandomSource random)
method_20679(class_5425 arg0, class_2338 arg1, class_5819 arg2)
isSpawnDark(ServerWorldAccess world, BlockPos pos, Random random)
public static boolean
checkMonsterSpawnRules(EntityType<? extends Mob> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
method_20680(class_1299<? extends class_1308> arg0, class_5425 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawnInDark(EntityType<? extends MobEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
public static boolean
checkAnyLightMonsterSpawnRules(EntityType<? extends Monster> type, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
method_20681(class_1299<? extends class_1588> arg0, class_1936 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawnIgnoreLightLevel(EntityType<? extends HostileEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
public static boolean
checkSurfaceMonstersSpawnRules(EntityType<? extends Mob> type, ServerLevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random)
method_76104(class_1299<? extends class_1308> arg0, class_5425 arg1, class_3730 arg2, class_2338 arg3, class_5819 arg4)
canSpawnInDarkUnderSky(EntityType<? extends MobEntity> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
public static DefaultAttributeContainer$Builder
createMonsterAttributes()
method_26918()
createHostileAttributes()
public boolean
shouldDropExperience()
method_6054()
shouldDropExperience()
protected boolean
shouldDropLoot(ServerLevel level)
method_27071(class_3218 arg0)
shouldDropLoot(ServerWorld arg0)
public boolean
isPreventingPlayerRest(ServerLevel level, Player player)
method_7076(class_3218 arg0, class_1657 arg1)
isAngryAt(ServerWorld world, PlayerEntity player)
public ItemStack
getProjectile(ItemStack heldWeapon)
method_18808(class_1799 arg0)
getProjectileType(ItemStack arg0)