Package net.minecraft.entity.projectile
Class WitherSkullEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.projectile.ProjectileEntity
net.minecraft.entity.projectile.ExplosiveProjectileEntity
net.minecraft.entity.projectile.WitherSkullEntity
- All Implemented Interfaces:
ComponentsAccess
,DataTracked
,Ownable
,ScoreHolder
,Nameable
,EntityLike
,UniquelyIdentifiable
- Mappings:
Namespace Name named net/minecraft/entity/projectile/WitherSkullEntity
intermediary net/minecraft/class_1687
official cwd
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.projectile.ProjectileEntity
ProjectileEntity.ProjectileCreator<T extends ProjectileEntity>
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TrackedData
<Boolean> private static final boolean
Fields inherited from class net.minecraft.entity.projectile.ExplosiveProjectileEntity
accelerationPower, DEFAULT_ACCELERATION_POWER, field_51892
Fields inherited from class net.minecraft.entity.projectile.ProjectileEntity
owner
Fields inherited from class net.minecraft.entity.Entity
age, AIR_KEY, collidedSoftly, CUSTOM_DATA_KEY, dataTracker, DEFAULT_FRICTION, DEFAULT_MIN_FREEZE_DAMAGE_TICKS, DEFAULT_PORTAL_COOLDOWN, distanceTraveled, FALL_DISTANCE_KEY, fallDistance, field_44870, field_44871, field_44872, field_49073, field_49791, FIRE_KEY, firstUpdate, FLAGS, fluidHeight, FREEZING_DAMAGE_INTERVAL, GLIDING_FLAG_INDEX, GLOWING_FLAG_INDEX, GLOWING_KEY, groundCollision, horizontalCollision, ID_KEY, inPowderSnow, intersectionChecked, INVULNERABLE_KEY, lastPitch, lastRenderX, lastRenderY, lastRenderZ, lastX, lastY, lastYaw, lastZ, MAX_COMMAND_TAGS, MAX_QUEUED_COLLISION_CHECKS, MAX_RIDING_COOLDOWN, MIN_RISING_BUBBLE_COLUMN_SPEED, MOTION_KEY, movementMultiplier, NO_GRAVITY_KEY, noClip, ON_FIRE_FLAG_INDEX, ON_GROUND_KEY, PASSENGERS_KEY, PORTAL_COOLDOWN_KEY, portalManager, POS_KEY, POSE, random, ridingCooldown, ROTATION_KEY, SILENT_KEY, speed, submergedInWater, supportingBlockPos, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow
Fields inherited from interface net.minecraft.scoreboard.ScoreHolder
WILDCARD, WILDCARD_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionWitherSkullEntity
(EntityType<? extends WitherSkullEntity> type, World world) WitherSkullEntity
(World world, LivingEntity owner, Vec3d velocity) -
Method Summary
Modifier and TypeMethodDescriptionprotected float
getDrag()
float
getEffectiveExplosionResistance
(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max) Returns the blast resistance ofblockState
for an explosion caused by this entity.protected void
initDataTracker
(DataTracker.Builder builder) Initializes data tracker.protected boolean
boolean
boolean
isOnFire()
Returns whether the entity is on fire and is not fire immune.protected void
onCollision
(HitResult hitResult) protected void
onEntityHit
(EntityHitResult entityHitResult) protected void
readCustomData
(ReadView view) void
setCharged
(boolean charged) protected void
writeCustomData
(WriteView view) Methods inherited from class net.minecraft.entity.projectile.ExplosiveProjectileEntity
canHit, damage, getBrightnessAtEyes, getDragInWater, getParticleType, getRaycastShapeType, onDeflected, shouldRender, tick
Methods inherited from class net.minecraft.entity.projectile.ProjectileEntity
calculateVelocity, canBreakBlocks, canHit, canModifyAt, copyFrom, createSpawnPacket, deflect, deflectsAgainstWorldBorder, getDefaultPortalCooldown, getEffectCause, getKnockback, getOwner, getTargetingMargin, hitOrDeflect, isOwner, onBlockHit, onBroken, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onSpawnPacket, setOwner, setOwner, setVelocity, setVelocity, spawn, spawn, spawnWithVelocity, spawnWithVelocity, spawnWithVelocity, triggerProjectileSpawned, updateRotation, updateRotation
Methods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addCommandTag, addFlapEffects, addPassenger, addPortalChunkTicketAt, addVelocity, addVelocity, addVelocityInternal, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, animateDamage, applyBubbleColumnEffects, applyBubbleColumnSurfaceEffects, applyGravity, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateDefaultBoundingBox, calculateDimensions, calculateNextStepSoundDistance, canActVoluntarily, canAddPassenger, canAvoidTraps, canBeHitByProjectile, canBeSpectated, canExplosionDestroyBlock, canFreeze, canMoveVoluntarily, canSprintAsVehicle, canStartRiding, canTeleportBetween, canUsePortals, castComponentValue, changeLookDirection, checkDespawn, clearQueuedCollisionChecks, clientDamage, collides, collidesWith, collidesWithFluid, collidesWithStateAtPos, copyComponentFrom, copyComponentsFrom, copyComponentsFrom, copyPositionAndRotation, couldAcceptPassenger, defrost, detach, detachAllHeldLeashes, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, dropStack, emitGameEvent, emitGameEvent, equals, extinguish, extinguishWithSound, fall, get, getAir, getAttachments, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyX, getBodyY, getBodyYaw, getBodyZ, getBoundingBox, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCommandTags, getControllingPassenger, getControllingVehicle, getCustomName, getDamageSources, getDataTracker, getDefaultName, getDimensions, getDisplayName, getErrorReporterContext, getEyeHeight, getEyePos, getEyeY, getFacing, getFinalGravity, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getGravity, getHandPosOffset, getHeadYaw, getHeight, getHeldQuadLeashOffsets, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getInterpolator, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLastRenderPos, getLeashPos, getLerpedPitch, getLerpedPos, getLerpedYaw, getLootTableKey, getMaxAir, getMinFreezeDamageTicks, getMoveEffect, getMovement, getMovementDirection, getName, getNameForScoreboard, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerAttachmentPos, getPassengerAttachmentPos, getPassengerDismountOffset, getPassengerList, getPassengerRidingPos, getPassengersDeep, getPickBlockStack, getPistonBehavior, getPitch, getPitch, getPlayerPassengers, getPortalCooldown, getPos, getPose, getPosWithYOffset, getProjectileDeflection, getRandom, getRandomBodyY, getRegistryManager, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStackReference, getStandingEyeHeight, getStepHeight, getSteppingBlockState, getSteppingPos, getStepSoundPos, getSwimHeight, getSwimSound, getSyncedPos, getTeamColorValue, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVehicleAttachmentPos, getVelocity, getVelocityAffectingPos, getVelocityMultiplier, getWeaponStack, getWidth, getWorld, getWorldSpawnPos, getX, getY, getYaw, getYaw, getZ, handleAttack, handleFall, handleFallDamage, handleFallDamageForPassengers, handleStatus, hasCollidedSoftly, hasControllingPassenger, hasCustomName, hashCode, hasNoGravity, hasPassenger, hasPassenger, hasPassengerDeep, hasPassengers, hasPlayerRider, hasPortalCooldown, hasQuadLeashAttachmentPoints, hasVehicle, igniteByLava, interact, interactAt, isAlive, isAlwaysInvulnerableTo, isAtCloudHeight, isAttackable, isCollidable, isConnectedThroughVehicle, isControlledByMainPlayer, isControlledByPlayer, isCrawling, isCustomNameVisible, isDescending, isFireImmune, isFlappingWings, isFlyingVehicle, isFrozen, isGlowing, isGlowingLocal, isImmuneToExplosion, isInFluid, isInLava, isInPose, isInRange, isInRange, isInSameTeam, isInsideWall, isInSneakingPose, isInSwimmingPose, isInterpolating, isInvisible, isInvisibleTo, isInvulnerable, isLiving, isLogicalSideForUpdatingMovement, isOnGround, isOnRail, isPartOf, isPlayer, isPushable, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSupportedBy, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, kill, lerpPosAndRotation, lerpYaw, limitFallDistance, lookAt, move, movementInputToVelocity, occludeVibrationSignals, onBlockCollision, onDamaged, onDataTrackerUpdate, onExplodedBy, onHeldLeashUpdate, onKilledOther, onLanding, onPassengerLookAround, onPlayerCollision, onRemove, onRemoved, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playCombinationStepSounds, playExtinguishSound, playSecondaryStepSound, playSound, playSoundIfNotSilent, playStepSound, playSwimSound, playSwimSound, popQueuedCollisionCheck, populateCrashReport, positionInPortal, pushAwayFrom, pushOutOfBlocks, raycast, readData, recalculateDimensions, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, refreshPositionAndAngles, reinitDimensions, remove, removeAllPassengers, removeCommandTag, removeFromDimension, removePassenger, requestTeleport, requestTeleportAndDismount, requestTeleportOffset, resetPortalCooldown, resetPosition, rotate, saveData, saveSelfData, scheduleVelocityUpdate, serverDamage, setAir, setAlwaysSyncAbsolute, setAngles, setApplicableComponent, setBodyYaw, setBoundingBox, setChangeListener, setComponent, setCustomName, setCustomNameVisible, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setId, setInPowderSnow, setInvisible, setInvulnerable, setLastPositionAndAngles, setMovement, setMovement, setNoGravity, setOnFire, setOnFireFor, setOnFireForTicks, setOnFireFromLava, setOnGround, setPitch, setPortalCooldown, setPos, setPose, setPosition, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setWorld, setYaw, shouldAlwaysSyncAbsolute, shouldControlVehicles, shouldDismountUnderwater, shouldEscapePowderSnow, shouldPlayBurnSoundInLava, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTickBlockCollision, sidedDamage, slowMovement, snipAllHeldLeashes, spawnBubbleColumnParticles, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, teleportSpectatingPlayers, teleportTo, tickBlockCollision, tickBlockCollision, tickHeldLeash, tickInVoid, tickPortalCooldown, tickPortalTeleportation, tickRiding, toString, tryUsePortal, unsetRemoved, updateEventHandler, updateKilledAdvancementCriterion, updateLastAngles, updateLastPosition, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSupportingBlockPos, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPositionAndAngles, updateVelocity, updateWaterState, writeData
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.component.ComponentsAccess
getOrDefault, getTyped
Methods inherited from interface net.minecraft.scoreboard.ScoreHolder
getStyledDisplayName
-
Field Details
-
CHARGED
- Mappings:
Namespace Name Mixin selector named CHARGED
Lnet/minecraft/entity/projectile/WitherSkullEntity;CHARGED:Lnet/minecraft/entity/data/TrackedData;
intermediary field_7654
Lnet/minecraft/class_1687;field_7654:Lnet/minecraft/class_2940;
official d
Lcwd;d:Lalh;
-
DEFAULT_DANGEROUS
private static final boolean DEFAULT_DANGEROUS- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_DANGEROUS
Lnet/minecraft/entity/projectile/WitherSkullEntity;DEFAULT_DANGEROUS:Z
intermediary field_57746
Lnet/minecraft/class_1687;field_57746:Z
official f
Lcwd;f:Z
-
-
Constructor Details
-
WitherSkullEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
official <init>
Lbzm;<init>(Lbzv;Ldmu;)V
-
WitherSkullEntity
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/projectile/WitherSkullEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/math/Vec3d;)V
intermediary <init>
Lnet/minecraft/class_1687;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_243;)V
official <init>
Lcwd;<init>(Ldmu;Lcam;Lfis;)V
-
-
Method Details
-
getDrag
protected float getDrag()- Overrides:
getDrag
in classExplosiveProjectileEntity
- Mappings:
Namespace Name Mixin selector named getDrag
Lnet/minecraft/entity/projectile/ExplosiveProjectileEntity;getDrag()F
intermediary method_7466
Lnet/minecraft/class_1668;method_7466()F
official l
Lcvc;l()F
-
isOnFire
public boolean isOnFire()Returns whether the entity is on fire and is not fire immune. -
getEffectiveExplosionResistance
public float getEffectiveExplosionResistance(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max) Returns the blast resistance ofblockState
for an explosion caused by this entity.- Overrides:
getEffectiveExplosionResistance
in classEntity
- Returns:
- the blast resistance of
blockState
for an explosion caused by this entity - See Also:
- API Note:
WitherSkullEntity
overrides this to implement the "charged/blue skull" behavior.- Mappings:
Namespace Name Mixin selector named getEffectiveExplosionResistance
Lnet/minecraft/entity/Entity;getEffectiveExplosionResistance(Lnet/minecraft/world/explosion/Explosion;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;F)F
intermediary method_5774
Lnet/minecraft/class_1297;method_5774(Lnet/minecraft/class_1927;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;F)F
official a
Lbzm;a(Ldmn;Ldly;Ljb;Leeb;Lfal;F)F
-
onEntityHit
- Overrides:
onEntityHit
in classProjectileEntity
- Mappings:
Namespace Name Mixin selector named onEntityHit
Lnet/minecraft/entity/projectile/ProjectileEntity;onEntityHit(Lnet/minecraft/util/hit/EntityHitResult;)V
intermediary method_7454
Lnet/minecraft/class_1676;method_7454(Lnet/minecraft/class_3966;)V
official a
Lcvo;a(Lfip;)V
-
onCollision
- Overrides:
onCollision
in classProjectileEntity
- Mappings:
Namespace Name Mixin selector named onCollision
Lnet/minecraft/entity/projectile/ProjectileEntity;onCollision(Lnet/minecraft/util/hit/HitResult;)V
intermediary method_7488
Lnet/minecraft/class_1676;method_7488(Lnet/minecraft/class_239;)V
official a
Lcvo;a(Lfiq;)V
-
initDataTracker
Initializes data tracker.- Overrides:
initDataTracker
in classExplosiveProjectileEntity
- API Note:
- Subclasses should override this and add to the builder any data that needs to be tracked.
- Mappings:
Namespace Name Mixin selector named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
official a
Lbzm;a(Lall$a;)V
-
isCharged
public boolean isCharged()- Mappings:
Namespace Name Mixin selector named isCharged
Lnet/minecraft/entity/projectile/WitherSkullEntity;isCharged()Z
intermediary method_7503
Lnet/minecraft/class_1687;method_7503()Z
official n
Lcwd;n()Z
-
setCharged
public void setCharged(boolean charged) - Mappings:
Namespace Name Mixin selector named setCharged
Lnet/minecraft/entity/projectile/WitherSkullEntity;setCharged(Z)V
intermediary method_7502
Lnet/minecraft/class_1687;method_7502(Z)V
official a
Lcwd;a(Z)V
-
isBurning
protected boolean isBurning()- Overrides:
isBurning
in classExplosiveProjectileEntity
- Mappings:
Namespace Name Mixin selector named isBurning
Lnet/minecraft/entity/projectile/ExplosiveProjectileEntity;isBurning()Z
intermediary method_7468
Lnet/minecraft/class_1668;method_7468()Z
official f
Lcvc;f()Z
-
writeCustomData
- Overrides:
writeCustomData
in classExplosiveProjectileEntity
- Mappings:
Namespace Name Mixin selector named writeCustomData
Lnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)V
official a
Lbzm;a(Lfdc;)V
-
readCustomData
- Overrides:
readCustomData
in classExplosiveProjectileEntity
- Mappings:
Namespace Name Mixin selector named readCustomData
Lnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)V
official a
Lbzm;a(Lfda;)V
-