net.minecraft.world.entity.animal.golem

public class CopperGolem

extends AbstractGolem implements ContainerUser, Shearable

All mapped superinterfaces:

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

cwc
net.minecraft.world.entity.animal.golem.CopperGolem
net.minecraft.class_11573
net.minecraft.entity.passive.CopperGolemEntity
net.minecraft.src.C_432552_
net.minecraft.world.entity.animal.golem.CopperGolem

字段概要

修饰符与类型字段
private static final long
b
IGNORE_WEATHERING_TICK
field_61257
field_61257
f_435170_
private static final long
c
UNSET_WEATHERING_TICK
field_61258
field_61258
f_433318_
private static final int
d
WEATHERING_TICK_FROM
field_61259
field_61259
f_435690_
private static final int
e
WEATHERING_TICK_TO
field_61273
field_61273
f_435515_
private static final int
f
SPIN_ANIMATION_MIN_COOLDOWN
field_61274
field_61274
f_434213_
private static final int
cv
SPIN_ANIMATION_MAX_COOLDOWN
field_61275
field_61275
f_433894_
private static final float
cw
SPIN_SOUND_TIME_INTERVAL_OFFSET
field_61260
field_61260
f_434574_
private static final float
cx
TURN_TO_STATUE_CHANCE
field_63113
field_63113
f_433912_
private static final int
cy
SPAWN_COOLDOWN_MIN
field_63114
field_63114
f_436423_
private static final int
cz
SPAWN_COOLDOWN_MAX
field_63115
field_63115
f_433586_
private static final EntityDataAccessor<WeatheringCopper$WeatherState>
cA
DATA_WEATHER_STATE
field_61261
OXIDATION_LEVEL
f_435831_
private static final EntityDataAccessor<CopperGolemState>
cB
COPPER_GOLEM_STATE
field_61262
COPPER_GOLEM_STATE
f_434134_
private BlockPos
cC
openedChestPos
field_61263
targetContainer
f_433546_
private UUID
cD
lastLightningBoltUUID
field_63016
lastStruckLightning
f_435873_
private long
cE
nextWeatheringTick
field_61264
nextOxidationAge
f_435057_
private int
cF
idleAnimationStartTick
field_61265
spinHeadTimer
f_437102_
private final AnimationState
cG
idleAnimationState
field_61268
spinHeadAnimationState
f_434466_
private final AnimationState
cH
interactionGetItemAnimationState
field_61269
gettingItemAnimationState
f_435874_
private final AnimationState
cI
interactionGetNoItemAnimationState
field_61270
gettingNoItemAnimationState
f_436842_
private final AnimationState
cJ
interactionDropItemAnimationState
field_61271
droppingItemAnimationState
f_434085_
private final AnimationState
cK
interactionDropNoItemAnimationState
field_61272
droppingNoItemAnimationState
f_434523_
public static final EquipmentSlot
a
EQUIPMENT_SLOT_ANTENNA
field_62430
POPPY_SLOT
f_434669_

构造函数概要

修饰符构造函数
public (EntityType<? extends AbstractGolem> p_455339_, Level arg1)

方法概要

修饰符与类型方法
public static AttributeSupplier$Builder
k()
createAttributes()
method_72475()
createCopperGolemAttributes()
m_440934_()
public CopperGolemState
p()
getState()
method_72476()
getState()
m_445683_()
public void
a(cwg arg0)
setState(CopperGolemState arg0)
method_72458(class_11577 arg0)
setState(CopperGolemState state)
m_439889_(C_433076_ arg0)
public WeatheringCopper$WeatherState
gP()
getWeatherState()
method_72477()
getOxidationLevel()
m_445134_()
public void
a(ejq$a arg0)
setWeatherState(WeatheringCopper$WeatherState arg0)
method_72461(class_5955$class_5811 arg0)
setOxidationLevel(Oxidizable$OxidationLevel oxidationLevel)
m_445635_(C_141235_$C_141236_ arg0)
public void
h(is arg0)
setOpenedChestPos(BlockPos arg0)
method_72474(class_2338 arg0)
setTargetContainerPos(BlockPos pos)
m_442790_(C_4675_ arg0)
public void
gQ()
clearOpenedChestPos()
method_72478()
resetTargetContainerPos()
m_446842_()
public AnimationState
gR()
getIdleAnimationState()
method_72463()
getSpinHeadAnimationState()
m_442805_()
public AnimationState
gS()
getInteractionGetItemAnimationState()
method_72466()
getGettingItemAnimationState()
m_445662_()
public AnimationState
gT()
getInteractionGetNoItemAnimationState()
method_72467()
getGettingNoItemAnimationState()
m_445502_()
public AnimationState
gU()
getInteractionDropItemAnimationState()
method_72468()
getDroppingItemAnimationState()
m_440801_()
public AnimationState
gV()
getInteractionDropNoItemAnimationState()
method_72469()
getDroppingNoItemAnimationState()
m_445605_()
protected Brain$Provider<CopperGolem>
ew()
brainProvider()
method_28306()
createBrainProfile()
m_5490_()
protected Brain<?>
a(com.mojang.serialization.Dynamic<?> arg0)
makeBrain(com.mojang.serialization.Dynamic<?> arg0)
method_18867(com.mojang.serialization.Dynamic<?> arg0)
deserializeBrain(com.mojang.serialization.Dynamic<?> arg0)
m_8075_(com.mojang.serialization.Dynamic<?> arg0)
public Brain<CopperGolem>
ev()
getBrain()
method_18868()
getBrain()
m_6274_()
protected void
a(ama$a arg0)
defineSynchedData(SynchedEntityData$Builder arg0)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
m_8097_(C_5247_$C_313487_ arg0)
public void
a(fns arg0)
addAdditionalSaveData(ValueOutput arg0)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
m_7380_(C_398537_ arg0)
public void
a(fnq arg0)
readAdditionalSaveData(ValueInput arg0)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
m_7378_(C_398549_ arg0)
protected void
a(axf arg0)
customServerAiStep(ServerLevel arg0)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
m_8024_(C_12_ arg0)
public void
g()
tick()
method_5773()
tick()
m_8119_()
public InteractionResult
b(ddm arg0, cdb arg1)
mobInteract(Player arg0, InteractionHand arg1)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
m_6071_(C_1141_ p_457772_, C_470_ arg1)
private void
a(axf arg0, bgr arg1, long arg2)
updateWeathering(ServerLevel arg0, RandomSource arg1, long arg2)
method_72457(class_3218 arg0, class_5819 arg1, long arg2)
serverTick(ServerWorld world, Random random, long timeOfDay)
m_438941_(C_12_ p_459584_, C_212974_ p_460790_, long arg2)
private boolean
c(dwo arg0)
canTurnToStatue(Level arg0)
method_72462(class_1937 arg0)
canTurnIntoStatue(World world)
m_445121_(C_1596_ arg0)
private void
h(axf arg0)
turnToStatue(ServerLevel arg0)
method_72473(class_3218 arg0)
turnIntoStatue(ServerWorld world)
m_441469_(C_12_ arg0)
private void
gX()
setupAnimationStates()
method_72470()
clientTick()
m_443506_()
public void
b(ejq$a arg0)
spawn(WeatheringCopper$WeatherState arg0)
method_72460(class_5955$class_5811 arg0)
onSpawn(Oxidizable$OxidationLevel oxidationLevel)
m_440929_(C_141235_$C_141236_ arg0)
public SpawnGroupData
a(dxf arg0, cda arg1, cgt arg2, cie arg3)
finalizeSpawn(ServerLevelAccessor arg0, DifficultyInstance arg1, EntitySpawnReason arg2, SpawnGroupData arg3)
method_5943(class_5425 arg0, class_1266 arg1, class_3730 arg2, class_1315 arg3)
initialize(ServerWorldAccess arg0, LocalDifficulty arg1, SpawnReason arg2, EntityData arg3)
m_6518_(C_1618_ p_454032_, C_469_ p_454441_, C_345845_ p_455428_, C_542_ arg3)
public void
gW()
playSpawnSound()
method_72459()
playSpawnSound()
m_443325_()
private void
gY()
playHeadSpinSound()
method_72471()
playSpinHeadSound()
m_442953_()
protected SoundEvent
h(cex arg0)
getHurtSound(DamageSource arg0)
method_6011(class_1282 arg0)
getHurtSound(DamageSource arg0)
m_7975_(C_489_ arg0)
protected SoundEvent
fd()
getDeathSound()
method_6002()
getDeathSound()
m_5592_()
protected void
b(is arg0, eoh arg1)
playStepSound(BlockPos arg0, BlockState arg1)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos arg0, BlockState arg1)
m_7355_(C_4675_ p_457095_, C_2064_ arg1)
private SoundEvent
gZ()
getSpinHeadSound()
method_72472()
getSpinHeadSound()
m_446013_()
public Vec3
B()
getLeashOffset()
method_29919()
getLeashOffset()
m_33927_()
public boolean
a(elp arg0, is arg1)
hasContainerOpen(ContainerOpenersCounter arg0, BlockPos arg1)
method_72380(class_5561 arg0, class_2338 arg1)
isViewingContainerAt(ViewerCountManager arg0, BlockPos arg1)
m_415594_(C_141248_ p_455610_, C_4675_ arg1)
public double
ar()
getContainerInteractionRange()
method_72381()
getContainerInteractionRange()
m_417584_()
public void
a(axf arg0, bdb arg1, dlt arg2)
shear(ServerLevel arg0, SoundSource arg1, ItemStack arg2)
method_6636(class_3218 arg0, class_3419 arg1, class_1799 arg2)
sheared(ServerWorld arg0, SoundCategory arg1, ItemStack arg2)
m_5851_(C_12_ p_456118_, C_125_ p_458173_, C_1391_ arg2)
public boolean
a()
readyForShearing()
method_27072()
isShearable()
m_6220_()
protected void
g(axf arg0)
dropEquipment(ServerLevel arg0)
method_16078(class_3218 arg0)
dropInventory(ServerWorld arg0)
m_5907_(C_12_ arg0)
protected void
c(axf arg0, cex arg1, float arg2)
actuallyHurt(ServerLevel arg0, DamageSource arg1, float arg2)
method_6074(class_3218 arg0, class_1282 arg1, float arg2)
applyDamage(ServerWorld arg0, DamageSource arg1, float arg2)
m_6475_(C_12_ p_450313_, C_489_ p_457432_, float arg2)
public void
a(axf arg0, chk arg1)
thunderHit(ServerLevel arg0, LightningBolt arg1)
method_5800(class_3218 arg0, class_1538 arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
m_8038_(C_12_ p_458528_, C_523_ arg1)