net.minecraft.world.entity.animal

public class IronGolem

extends AbstractGolem implements NeutralMob

All mapped superinterfaces:

SyncedDataHolder, DebugValueSource, Nameable, ItemOwner, SlotProvider, EntityAccess, UniquelyIdentifyable, ScoreHolder, DataComponentGetter, Attackable, WaypointTransmitter, Waypoint, EquipmentUser, Leashable, Targeting, NeutralMob

ctz
net.minecraft.world.entity.animal.IronGolem
net.minecraft.class_1439
net.minecraft.entity.passive.IronGolemEntity

Field summary

Modifier and TypeField
protected static final EntityDataAccessor<Byte>
d
DATA_FLAGS_ID
field_6763
IRON_GOLEM_FLAGS
private static final int
e
IRON_INGOT_HEAL_AMOUNT
field_30338
HEALTH_PER_INGOT
private static final boolean
f
DEFAULT_PLAYER_CREATED
field_57611
DEFAULT_PLAYER_CREATED
private int
cv
attackAnimationTick
field_6762
attackTicksLeft
private int
cw
offerFlowerTick
field_6759
lookingAtVillagerTicksLeft
private static final UniformInt
cx
PERSISTENT_ANGER_TIME
field_25365
ANGER_TIME_RANGE
private long
cy
persistentAngerEndTime
field_63321
angerEndTime
private EntityReference<LivingEntity>
cz
persistentAngerTarget
field_25367
angryAt

Constructor summary

ModifierConstructor
public (EntityType<? extends IronGolem> arg0, Level arg1)

Method summary

Modifier and TypeMethod
protected void
H()
registerGoals()
method_5959()
initGoals()
protected void
a(ama$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public static AttributeSupplier$Builder
k()
createAttributes()
method_26886()
createIronGolemAttributes()
protected int
l(int arg0)
decreaseAirSupply(int arg0)
method_6130(int arg0)
getNextAirUnderwater(int arg0)
protected void
F(cgi arg0)
doPush(Entity arg0)
method_6087(class_1297 arg0)
pushAway(Entity arg0)
public void
d_()
aiStep()
method_6007()
tickMovement()
public boolean
bK()
canSpawnSprintParticle()
method_27298()
shouldSpawnSprintingParticles()
public boolean
a(cgs<?> arg0)
canAttackType(EntityType<?> arg0)
method_5973(class_1299<?> arg0)
canTarget(EntityType<?> arg0)
protected void
a(fmk arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
protected void
a(fmi arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
public void
c()
startPersistentAngerTimer()
method_29509()
chooseRandomAngerTime()
public void
b(long arg0)
setPersistentAngerEndTime(long arg0)
method_75132(long arg0)
setAngerEndTime(long arg0)
public long
a()
getPersistentAngerEndTime()
method_75130()
getAngerEndTime()
public void
a(cgp<chk> arg0)
setPersistentAngerTarget(EntityReference<LivingEntity> arg0)
method_29513(class_10583<class_1309> arg0)
setAngryAt(LazyEntityReference<LivingEntity> arg0)
public EntityReference<LivingEntity>
b()
getPersistentAngerTarget()
method_29508()
getAngryAt()
private float
gR()
getAttackDamage()
method_22328()
getAttackDamage()
public boolean
c(axf arg0, cgi arg1)
doHurtTarget(ServerLevel arg0, Entity arg1)
method_6121(class_3218 arg0, class_1297 arg1)
tryAttack(ServerWorld arg0, Entity arg1)
public boolean
a(axf arg0, cev arg1, float arg2)
hurtServer(ServerLevel arg0, DamageSource arg1, float arg2)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld arg0, DamageSource arg1, float arg2)
public Crackiness$Level
m()
getCrackiness()
method_23347()
getCrackLevel()
public void
b(byte arg0)
handleEntityEvent(byte arg0)
method_5711(byte arg0)
handleStatus(byte arg0)
public int
n()
getAttackAnimationTick()
method_6501()
getAttackTicksLeft()
public void
x(boolean arg0)
offerFlower(boolean arg0)
method_6497(boolean arg0)
setLookingAtVillager(boolean lookingAtVillager)
protected SoundEvent
e(cev arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
protected SoundEvent
e_()
getDeathSound()
method_6002()
getDeathSound()
protected InteractionResult
b(dcm arg0, ccz arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
protected void
b(is arg0, emz arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
public int
s()
getOfferFlowerTick()
method_6502()
getLookingAtVillagerTicks()
public boolean
gQ()
isPlayerCreated()
method_6496()
isPlayerCreated()
public void
y(boolean arg0)
setPlayerCreated(boolean arg0)
method_6499(boolean arg0)
setPlayerCreated(boolean playerCreated)
public void
a(cev arg0)
die(DamageSource arg0)
method_6078(class_1282 arg0)
onDeath(DamageSource arg0)
public boolean
a(dvj arg0)
checkSpawnObstruction(LevelReader arg0)
method_5957(class_4538 arg0)
canSpawn(WorldView arg0)
public Vec3
F()
getLeashOffset()
method_29919()
getLeashOffset()