Package net.minecraft.entity.mob
Class AbstractPiglinEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.LivingEntity
net.minecraft.entity.mob.MobEntity
net.minecraft.entity.mob.PathAwareEntity
net.minecraft.entity.mob.HostileEntity
net.minecraft.entity.mob.AbstractPiglinEntity
- All Implemented Interfaces:
EntityLike
,Monster
,CommandOutput
,Nameable
- Direct Known Subclasses:
PiglinBruteEntity
,PiglinEntity
public abstract class AbstractPiglinEntity extends HostileEntity
- Mappings:
Namespace Name official bgg
intermediary net/minecraft/class_5418
named net/minecraft/entity/mob/AbstractPiglinEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.class_5799, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Fields Modifier and Type Field Description protected static TrackedData<Boolean>
IMMUNE_TO_ZOMBIFICATION
protected int
timeInOverworld
Fields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, experiencePoints, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector
Fields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, bodyTrackingIncrements, bodyYaw, brain, dead, deathTime, defaultMaxHealth, despawnCounter, field_6215, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, knockbackVelocity, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, lastLimbDistance, limbAngle, limbDistance, LIVING_FLAGS, lookDirection, maxHurtTime, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed
Fields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_28627, field_28629, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, ridingCooldown, stepHeight, submergedFluidTag, submergedInWater, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, world, yaw
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
-
Constructor Summary
Constructors Constructor Description AbstractPiglinEntity(EntityType<? extends AbstractPiglinEntity> type, World world)
-
Method Summary
Modifier and Type Method Description protected abstract boolean
canHunt()
abstract PiglinActivity
getActivity()
double
getHeightOffset()
LivingEntity
getTarget()
protected void
initDataTracker()
boolean
isAdult()
protected boolean
isHoldingTool()
protected boolean
isImmuneToZombification()
protected void
mobTick()
void
playAmbientSound()
protected abstract void
playZombificationSound()
void
readCustomDataFromTag(CompoundTag tag)
protected void
sendAiDebugData()
private void
setCanPathThroughDoors()
void
setImmuneToZombification(boolean immuneToZombification)
boolean
shouldZombify()
void
writeCustomDataToTag(CompoundTag tag)
protected void
zombify(ServerWorld world)
Methods inherited from class net.minecraft.entity.mob.HostileEntity
canDropLootAndXp, canSpawnIgnoreLightLevel, canSpawnInDark, createHostileAttributes, getArrowType, getDeathSound, getFallSound, getHurtSound, getPathfindingFavor, getSoundCategory, getSplashSound, getSwimSound, isAngryAt, isDisallowedInPeaceful, isSpawnDark, shouldDropLoot, tickMovement, updateDespawnCounter
Methods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getPathfindingFavor, getRunFromLeashSpeed, isNavigating, updateForLeashLength, updateLeash
Methods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canBeControlledByRider, canBeLeashedBy, canEquip, canGather, canImmediatelyDespawn, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, canTarget, canUseRangedWeapon, checkDespawn, createBodyControl, createMobAttributes, createNavigation, detachLeash, dropEquipment, dropLoot, enchantEquipment, enchantMainHandItem, equipLootStack, equipStack, getAmbientSound, getArmorItems, getBodyYawSpeed, getCurrentExperience, getDropChance, getEquipmentForSlot, getEquippedStack, getHoldingEntity, getItemsHand, getJumpControl, getLimitPerChunk, getLookControl, getLookPitchSpeed, getLookYawSpeed, getLootContextBuilder, getLootTable, getLootTableId, getMainArm, getMinAmbientSoundDelay, getMoveControl, getNavigation, getPathfindingPenalty, getPickBlockStack, getPositionTarget, getPositionTargetRange, getSafeFallDistance, getVisibilityCache, handleStatus, hasPositionTarget, initEquipment, initGoals, initialize, interact, interactMob, isAffectedByDaylight, isAiDisabled, isAttacking, isInWalkTargetRange, isInWalkTargetRange, isLeashed, isLeftHanded, isLogicalSideForUpdatingMovement, isPersistent, lookAtEntity, loot, method_29243, method_29244, method_33191, movesIndependently, onEatingGrass, onPlayerSpawnedChild, playHurtSound, playSpawnEffects, prefersNewDamageableItem, prefersNewEquipment, removeFromDimension, setAiDisabled, setAttacking, setBaby, setCanPickUpLoot, setEquipmentDropChance, setForwardSpeed, setHoldingEntityId, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, startRiding, swimUpward, tick, tickNewAi, tryAttack, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControls
Methods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyEnchantmentsToDamage, applyMovementEffects, applyStatusEffect, attackLivingEntity, canBeRiddenInWater, canBreatheInWater, canFreeze, canHaveStatusEffect, canSee, canTakeDamage, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, collides, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createBrainProfile, createLivingAttributes, createSpawnPacket, damage, damageArmor, damageShield, deserializeBrain, displaySoulSpeedEffects, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveEyeHeight, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseMovementSpeedMultiplier, getBlockState, getBoundingBox, getBrain, getClimbingPos, getDamageTracker, getDespawnCounter, getDimensions, getDrinkSound, getEatSound, getEyeHeight, getGroup, getHandSwingProgress, getHeadYaw, getHealth, getItemUseTime, getItemUseTimeLeft, getJumpVelocity, getLastAttackedTime, getLastAttackTime, getLeaningPitch, getMainHandStack, getMaxHealth, getMovementSpeed, getNextAirOnLand, getNextAirUnderwater, getOffHandStack, getPoses, getPreferredEquipmentSlot, getPrimeAdversary, getRandom, getRecentDamageSource, getRoll, getScaleFactor, getSleepingDirection, getSleepingPosition, getSoundPitch, getSoundVolume, getStackInHand, getStatusEffect, getStatusEffects, getStingerCount, getStuckArrowCount, getVelocityMultiplier, getVisibilityBoundingBox, getYaw, handleFallDamage, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isBaby, isBlocking, isClimbing, isDead, isFallFlying, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInsideWall, isInSwimmingPose, isMobOrPlayer, isOnSoulSpeedBlock, isPushable, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lookAt, markEffectsDirty, method_26317, method_26318, method_29500, method_30633, method_31079, method_32318, method_33579, onAttacking, onDeath, onEquipStack, onKilledBy, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, onTrackedDataSet, playBlockFallSound, pushAway, pushAwayFrom, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, scheduleVelocityUpdate, sendEquipmentBreakStatus, sendPickup, sendToolBreakStatus, setAbsorptionAmount, setAttacker, setAttacking, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setOnGround, setRiptideTicks, setSleepingPosition, setSprinting, setStackInHand, setStingerCount, setStuckArrowCount, setYaw, shouldAlwaysDropXp, shouldDisplaySoulSpeedEffects, shouldRenderName, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickCramming, tickHandSwing, tickInVoid, tickRiding, tickRiptide, tickStatusEffects, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUp
Methods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeSpectated, canExplosionDestroyBlock, canFly, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, dealDamage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, fromTag, getAir, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMountedHeightOffset, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getStandingEyeHeight, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getX, getY, getZ, handleAttack, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isFreezing, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isOnFire, isOnGround, isPartOf, isPlayer, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, method_29241, method_29919, method_30330, method_30951, method_31744, method_32877, method_33332, method_33567, method_33568, method_33569, method_33570, method_33571, method_33573, method_33574, method_33575, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playFlySound, playSound, playStepSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setFrozenTicks, setGlowing, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setPos, setPose, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, streamPassengers, streamPassengersRecursively, teleport, tickNetherPortal, tickNetherPortalCooldown, toListTag, toListTag, toString, toTag, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide
-
Field Details
-
IMMUNE_TO_ZOMBIFICATION
- Mappings:
Namespace Name Mixin selector official b
Lbgg;b:Lvk;
intermediary field_25758
Lnet/minecraft/class_5418;field_25758:Lnet/minecraft/class_2940;
named IMMUNE_TO_ZOMBIFICATION
Lnet/minecraft/entity/mob/AbstractPiglinEntity;IMMUNE_TO_ZOMBIFICATION:Lnet/minecraft/entity/data/TrackedData;
-
timeInOverworld
protected int timeInOverworld- Mappings:
Namespace Name Mixin selector official c
Lbgg;c:I
intermediary field_25759
Lnet/minecraft/class_5418;field_25759:I
named timeInOverworld
Lnet/minecraft/entity/mob/AbstractPiglinEntity;timeInOverworld:I
-
-
Constructor Details
-
AbstractPiglinEntity
- Mappings:
Namespace Name Mixin selector official <init>
Laqv;<init>(Laqz;Lbtv;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
-
Method Details
-
setCanPathThroughDoors
private void setCanPathThroughDoors()- Mappings:
Namespace Name Mixin selector official fr
Lbgg;fr()V
intermediary method_30239
Lnet/minecraft/class_5418;method_30239()V
named setCanPathThroughDoors
Lnet/minecraft/entity/mob/AbstractPiglinEntity;setCanPathThroughDoors()V
-
canHunt
protected abstract boolean canHunt()- Mappings:
Namespace Name Mixin selector official m
Lbgg;m()Z
intermediary method_26952
Lnet/minecraft/class_5418;method_26952()Z
named canHunt
Lnet/minecraft/entity/mob/AbstractPiglinEntity;canHunt()Z
-
setImmuneToZombification
public void setImmuneToZombification(boolean immuneToZombification)- Mappings:
Namespace Name Mixin selector official u
Lbgg;u(Z)V
intermediary method_30240
Lnet/minecraft/class_5418;method_30240(Z)V
named setImmuneToZombification
Lnet/minecraft/entity/mob/AbstractPiglinEntity;setImmuneToZombification(Z)V
-
isImmuneToZombification
protected boolean isImmuneToZombification()- Mappings:
Namespace Name Mixin selector official o
Lbgg;o()Z
intermediary method_30234
Lnet/minecraft/class_5418;method_30234()Z
named isImmuneToZombification
Lnet/minecraft/entity/mob/AbstractPiglinEntity;isImmuneToZombification()Z
-
initDataTracker
protected void initDataTracker()- Overrides:
initDataTracker
in classMobEntity
- Mappings:
Namespace Name Mixin selector official e
Laqv;e()V
intermediary method_5693
Lnet/minecraft/class_1297;method_5693()V
named initDataTracker
Lnet/minecraft/entity/Entity;initDataTracker()V
-
writeCustomDataToTag
- Overrides:
writeCustomDataToTag
in classMobEntity
- Mappings:
Namespace Name Mixin selector official b
Laqv;b(Lmq;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
named writeCustomDataToTag
Lnet/minecraft/entity/Entity;writeCustomDataToTag(Lnet/minecraft/nbt/CompoundTag;)V
-
getHeightOffset
public double getHeightOffset()- Overrides:
getHeightOffset
in classEntity
- Mappings:
Namespace Name Mixin selector official bg
Laqv;bg()D
intermediary method_5678
Lnet/minecraft/class_1297;method_5678()D
named getHeightOffset
Lnet/minecraft/entity/Entity;getHeightOffset()D
-
readCustomDataFromTag
- Overrides:
readCustomDataFromTag
in classMobEntity
- Mappings:
Namespace Name Mixin selector official a
Laqv;a(Lmq;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
named readCustomDataFromTag
Lnet/minecraft/entity/Entity;readCustomDataFromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
mobTick
protected void mobTick() -
shouldZombify
public boolean shouldZombify()- Mappings:
Namespace Name Mixin selector official r
Lbgg;r()Z
intermediary method_30235
Lnet/minecraft/class_5418;method_30235()Z
named shouldZombify
Lnet/minecraft/entity/mob/AbstractPiglinEntity;shouldZombify()Z
-
zombify
- Mappings:
Namespace Name Mixin selector official c
Lbgg;c(Laav;)V
intermediary method_24694
Lnet/minecraft/class_5418;method_24694(Lnet/minecraft/class_3218;)V
named zombify
Lnet/minecraft/entity/mob/AbstractPiglinEntity;zombify(Lnet/minecraft/server/world/ServerWorld;)V
-
isAdult
public boolean isAdult()- Mappings:
Namespace Name Mixin selector official fl
Lbgg;fl()Z
intermediary method_30236
Lnet/minecraft/class_5418;method_30236()Z
named isAdult
Lnet/minecraft/entity/mob/AbstractPiglinEntity;isAdult()Z
-
getActivity
- Mappings:
Namespace Name Mixin selector official fm
Lbgg;fm()Lbgj;
intermediary method_24705
Lnet/minecraft/class_5418;method_24705()Lnet/minecraft/class_4837;
named getActivity
Lnet/minecraft/entity/mob/AbstractPiglinEntity;getActivity()Lnet/minecraft/entity/mob/PiglinActivity;
-
getTarget
-
isHoldingTool
protected boolean isHoldingTool()- Mappings:
Namespace Name Mixin selector official fn
Lbgg;fn()Z
intermediary method_30237
Lnet/minecraft/class_5418;method_30237()Z
named isHoldingTool
Lnet/minecraft/entity/mob/AbstractPiglinEntity;isHoldingTool()Z
-
playAmbientSound
public void playAmbientSound()- Overrides:
playAmbientSound
in classMobEntity
- Mappings:
Namespace Name Mixin selector official J
Larj;J()V
intermediary method_5966
Lnet/minecraft/class_1308;method_5966()V
named playAmbientSound
Lnet/minecraft/entity/mob/MobEntity;playAmbientSound()V
-
sendAiDebugData
protected void sendAiDebugData()- Overrides:
sendAiDebugData
in classMobEntity
- Mappings:
Namespace Name Mixin selector official Q
Larj;Q()V
intermediary method_18409
Lnet/minecraft/class_1308;method_18409()V
named sendAiDebugData
Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
-
playZombificationSound
protected abstract void playZombificationSound()- Mappings:
Namespace Name Mixin selector official fo
Lbgg;fo()V
intermediary method_30238
Lnet/minecraft/class_5418;method_30238()V
named playZombificationSound
Lnet/minecraft/entity/mob/AbstractPiglinEntity;playZombificationSound()V
-