net.minecraft.entity.passive

public class CopperGolemEntity

extends GolemEntity implements ContainerUser, Shearable

All mapped superinterfaces:

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

net.minecraft.world.entity.animal.golem.CopperGolem
net.minecraft.class_11573
net.minecraft.entity.passive.CopperGolemEntity

Field summary

Modifier and TypeField
private static final long
IGNORE_WEATHERING_TICK
field_61257
field_61257
private static final long
UNSET_WEATHERING_TICK
field_61258
field_61258
private static final int
WEATHERING_TICK_FROM
field_61259
field_61259
private static final int
WEATHERING_TICK_TO
field_61273
field_61273
private static final int
SPIN_ANIMATION_MIN_COOLDOWN
field_61274
field_61274
private static final int
SPIN_ANIMATION_MAX_COOLDOWN
field_61275
field_61275
private static final float
SPIN_SOUND_TIME_INTERVAL_OFFSET
field_61260
field_61260
private static final float
TURN_TO_STATUE_CHANCE
field_63113
field_63113
private static final int
SPAWN_COOLDOWN_MIN
field_63114
field_63114
private static final int
SPAWN_COOLDOWN_MAX
field_63115
field_63115
private static final Brain$Profile<CopperGolemEntity>
BRAIN_PROVIDER
field_1_1245
PROFILE
private static final TrackedData<Oxidizable$OxidationLevel>
DATA_WEATHER_STATE
field_61261
OXIDATION_LEVEL
private static final TrackedData<CopperGolemState>
COPPER_GOLEM_STATE
field_61262
COPPER_GOLEM_STATE
private BlockPos
openedChestPos
field_61263
targetContainer
private UUID
lastLightningBoltUUID
field_63016
lastStruckLightning
private long
nextWeatheringTick
field_61264
nextOxidationAge
private int
idleAnimationStartTick
field_61265
spinHeadTimer
private final AnimationState
idleAnimationState
field_61268
spinHeadAnimationState
private final AnimationState
interactionGetItemAnimationState
field_61269
gettingItemAnimationState
private final AnimationState
interactionGetNoItemAnimationState
field_61270
gettingNoItemAnimationState
private final AnimationState
interactionDropItemAnimationState
field_61271
droppingItemAnimationState
private final AnimationState
interactionDropNoItemAnimationState
field_61272
droppingNoItemAnimationState
public static final EquipmentSlot
EQUIPMENT_SLOT_ANTENNA
field_62430
POPPY_SLOT

Constructor summary

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

Method summary

Modifier and TypeMethod
public static DefaultAttributeContainer$Builder
createAttributes()
method_72475()
createCopperGolemAttributes()
public CopperGolemState
getState()
method_72476()
getState()
public void
setState(CopperGolemState state)
method_72458(class_11577 arg0)
setState(CopperGolemState state)
public Oxidizable$OxidationLevel
getWeatherState()
method_72477()
getOxidationLevel()
public void
setWeatherState(WeatheringCopper$WeatherState state)
method_72461(class_5955$class_5811 arg0)
setOxidationLevel(Oxidizable$OxidationLevel oxidationLevel)
public void
setOpenedChestPos(BlockPos openedChestPos)
method_72474(class_2338 arg0)
setTargetContainerPos(BlockPos pos)
public void
clearOpenedChestPos()
method_72478()
resetTargetContainerPos()
public AnimationState
getIdleAnimationState()
method_72463()
getSpinHeadAnimationState()
public AnimationState
getInteractionGetItemAnimationState()
method_72466()
getGettingItemAnimationState()
public AnimationState
getInteractionGetNoItemAnimationState()
method_72467()
getGettingNoItemAnimationState()
public AnimationState
getInteractionDropItemAnimationState()
method_72468()
getDroppingItemAnimationState()
public AnimationState
getInteractionDropNoItemAnimationState()
method_72469()
getDroppingNoItemAnimationState()
protected Brain<CopperGolemEntity>
makeBrain(Brain$Packed packedBrain)
method_18867(class_4095$class_1_142 arg0)
deserializeBrain(Brain$State arg0)
public Brain<CopperGolemEntity>
getBrain()
method_18868()
getBrain()
protected void
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder arg0)
public void
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView arg0)
public void
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView arg0)
protected void
customServerAiStep(ServerLevel level)
method_5958(class_3218 arg0)
mobTick(ServerWorld arg0)
public void
tick()
method_5773()
tick()
public ActionResult
mobInteract(Player player, InteractionHand hand)
method_5992(class_1657 arg0, class_1268 arg1)
interactMob(PlayerEntity arg0, Hand arg1)
private void
updateWeathering(ServerLevel level, RandomSource random, long gameTime)
method_72457(class_3218 arg0, class_5819 arg1, long arg2)
serverTick(ServerWorld world, Random random, long timeOfDay)
private boolean
canTurnToStatue(Level level)
method_72462(class_1937 arg0)
canTurnIntoStatue(World world)
private void
turnToStatue(ServerLevel level)
method_72473(class_3218 arg0)
turnIntoStatue(ServerWorld world)
private void
setupAnimationStates()
method_72470()
clientTick()
public void
spawn(WeatheringCopper$WeatherState weatherState)
method_72460(class_5955$class_5811 arg0)
onSpawn(Oxidizable$OxidationLevel oxidationLevel)
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 void
playSpawnSound()
method_72459()
playSpawnSound()
private void
playHeadSpinSound()
method_72471()
playSpinHeadSound()
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)
private SoundEvent
getSpinHeadSound()
method_72472()
getSpinHeadSound()
public Vec3d
getLeashOffset()
method_29919()
getLeashOffset()
public boolean
hasContainerOpen(ContainerOpenersCounter container, BlockPos blockPos)
method_72380(class_5561 arg0, class_2338 arg1)
isViewingContainerAt(ViewerCountManager arg0, BlockPos arg1)
public double
getContainerInteractionRange()
method_72381()
getContainerInteractionRange()
public void
shear(ServerLevel level, SoundSource soundSource, ItemStack tool)
method_6636(class_3218 arg0, class_3419 arg1, class_1799 arg2)
sheared(ServerWorld arg0, SoundCategory arg1, ItemStack arg2)
public boolean
readyForShearing()
method_27072()
isShearable()
protected void
dropEquipment(ServerLevel level)
method_16078(class_3218 arg0)
dropInventory(ServerWorld arg0)
protected void
actuallyHurt(ServerLevel level, DamageSource source, float dmg)
method_6074(class_3218 arg0, class_1282 arg1, float arg2)
applyDamage(ServerWorld arg0, DamageSource arg1, float arg2)
public void
thunderHit(ServerLevel level, LightningBolt lightningBolt)
method_5800(class_3218 arg0, class_1538 arg1)
onStruckByLightning(ServerWorld arg0, LightningEntity arg1)
private static List
lambda$static$0(CopperGolem arg0)
method_1_1453(class_11573 arg0)
method_1_1453(CopperGolemEntity copperGolem)