Package net.minecraft.entity.mob
Class PiglinEntity
- All Implemented Interfaces:
RangedAttackMob,CrossbowUser,InventoryOwner,Monster,CommandOutput,Nameable,EntityLike
- Mappings:
Namespace Name official bizintermediary net/minecraft/class_4836named net/minecraft/entity/mob/PiglinEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static TrackedData<Boolean>private static EntityAttributeModifierprivate static UUIDprivate booleanprivate static TrackedData<Boolean>private static TrackedData<Boolean>private static intprivate static floatprivate static intprivate static floatprivate static floatprivate static intprivate static floatprivate static floatprivate static doubleprivate SimpleInventoryprotected static ImmutableList<MemoryModuleType<?>>protected static ImmutableList<SensorType<? extends Sensor<? super PiglinEntity>>>Fields inherited from class net.minecraft.entity.mob.AbstractPiglinEntity
IMMUNE_TO_ZOMBIFICATION, TIME_TO_ZOMBIFY, timeInOverworldFields inherited from class net.minecraft.entity.mob.MobEntity
ambientSoundChance, armorDropChances, experiencePoints, field_30083, field_30084, field_30085, field_30091, goalSelector, handDropChances, jumpControl, LEASH_KEY, lookControl, moveControl, navigation, targetSelectorFields inherited from class net.minecraft.entity.LivingEntity
activeItemStack, attackingPlayer, bodyTrackingIncrements, bodyYaw, brain, dead, deathTime, defaultMaxHealth, despawnCounter, field_30063, field_30067, field_30068, field_30069, field_30070, field_30071, field_30072, field_30073, field_30074, field_30075, field_30076, field_30077, field_6215, flyingSpeed, forwardSpeed, handSwinging, handSwingProgress, handSwingTicks, headTrackingIncrements, headYaw, hurtTime, itemUseTimeLeft, jumping, knockbackVelocity, lastAttackedTicks, lastDamageTaken, lastHandSwingProgress, lastLimbDistance, limbAngle, limbDistance, LIVING_FLAGS, lookDirection, maxHurtTime, OFF_HAND_ACTIVE_FLAG, playerHitTimer, preferredHand, prevBodyYaw, prevHeadYaw, prevLookDirection, prevStepBobbingAmount, randomLargeSeed, randomSmallSeed, riptideTicks, roll, scoreAmount, serverHeadYaw, serverPitch, serverX, serverY, serverYaw, serverZ, sidewaysSpeed, SLEEPING_DIMENSIONS, stepBobbingAmount, stuckArrowTimer, stuckStingerTimer, upwardSpeed, USING_ITEM_FLAG, USING_RIPTIDE_FLAGFields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, FALL_FLYING_FLAG_INDEX, fallDistance, field_28627, field_29973, field_29974, field_29987, field_29988, field_29989, field_29990, field_29991, field_29992, field_29993, firstUpdate, FLAGS, fluidHeight, GLOWING_FLAG_INDEX, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, ON_FIRE_FLAG_INDEX, onGround, PASSENGERS_KEY, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, stepHeight, submergedFluidTag, submergedInWater, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire, worldFields inherited from interface net.minecraft.server.command.CommandOutput
DUMMYFields inherited from interface net.minecraft.entity.mob.Monster
field_30464, field_30465, field_30466, field_30467, field_30468, field_30469 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ItemStackvoidattack(LivingEntity target, float pullProgress)protected booleancanEquipStack(ItemStack stack)Returns whether this piglin can equip into or replace current equipment slot.booleanprotected booleancanHunt()booleancanImmediatelyDespawn(double distanceSquared)protected booleancanInsertIntoInventory(ItemStack stack)static booleancanSpawn(EntityType<PiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)booleancanUseRangedWeapon(RangedWeaponItem weapon)protected Brain.Profile<PiglinEntity>booleandamage(DamageSource source, float amount)protected Brain<?>deserializeBrain(com.mojang.serialization.Dynamic<?> dynamic)protected voiddropEquipment(DamageSource source, int lootingMultiplier, boolean allowDrops)private voidequipAtChance(EquipmentSlot slot, ItemStack stack)protected voidequipToMainHand(ItemStack stack)protected voidequipToOffHand(ItemStack stack)protected floatgetActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)protected SoundEventgetBrain()protected SoundEventprotected SoundEventgetHurtSound(DamageSource source)doubleprivate EntitygetTopMostPassenger(Entity entity, int maxLevel)Returns the passenger entity atmaxLevelin a stacked riding (riding on an entity that is riding on another entity, etc).protected intgetXpToDrop(PlayerEntity player)Called when this entity is killed and returns the amount of experience to drop.protected voidprotected voidinitEquipment(LocalDifficulty difficulty)initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable NbtCompound entityNbt)interactMob(PlayerEntity player, Hand hand)booleanisBaby()private booleanbooleanprotected booleanprotected voidloot(ItemEntity item)private ItemStackprotected voidmobTick()voidonTrackedDataSet(TrackedData<?> data)protected voidplaySound(SoundEvent sound)protected voidplayStepSound(BlockPos pos, BlockState blockState)protected voidvoidprotected booleanprefersNewEquipment(ItemStack newStack, ItemStack oldStack)voidvoidsetBaby(boolean baby)private voidsetCannotHunt(boolean cannotHunt)voidsetCharging(boolean charging)voidsetDancing(boolean dancing)voidshoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)booleanstartRiding(Entity entity, boolean force)voidprotected voidzombify(ServerWorld world)Methods inherited from class net.minecraft.entity.mob.AbstractPiglinEntity
getHeightOffset, getTarget, isAdult, isHoldingTool, isImmuneToZombification, playAmbientSound, sendAiDebugData, setImmuneToZombification, shouldZombifyMethods inherited from class net.minecraft.entity.mob.HostileEntity
canSpawnIgnoreLightLevel, canSpawnInDark, createHostileAttributes, getArrowType, getFallSound, getPathfindingFavor, getSoundCategory, getSplashSound, getSwimSound, isAngryAt, isSpawnDark, shouldDropLoot, shouldDropXp, tickMovement, updateDespawnCounterMethods inherited from class net.minecraft.entity.mob.PathAwareEntity
canSpawn, getPathfindingFavor, getRunFromLeashSpeed, isNavigating, updateForLeashLength, updateLeashMethods inherited from class net.minecraft.entity.mob.MobEntity
attachLeash, baseTick, canBeControlledByRider, canBeLeashedBy, canEquip, canJumpToNextPathNode, canMobSpawn, canMoveVoluntarily, cannotDespawn, canPickupItem, canPickUpLoot, canSpawn, canTarget, checkDespawn, clearGoalsAndTasks, convertTo, createBodyControl, createMobAttributes, createNavigation, detachLeash, dropLoot, enchantEquipment, enchantMainHandItem, equipLootStack, equipStack, getArmorItems, getBodyYawSpeed, 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, initGoals, interact, isAffectedByDaylight, isAiDisabled, isAttacking, isInWalkTargetRange, isInWalkTargetRange, isLeashed, isLeftHanded, isLogicalSideForUpdatingMovement, isPersistent, lookAtEntity, method_35055, movesIndependently, onEatingGrass, onPlayerSpawnedChild, playHurtSound, playSpawnEffects, prefersNewDamageableItem, removeFromDimension, setAiDisabled, setAttacking, setCanPickUpLoot, setEquipmentDropChance, setForwardSpeed, setHoldingEntityId, setLeftHanded, setMovementSpeed, setPathfindingPenalty, setPersistent, setPositionTarget, setSidewaysSpeed, setTarget, setUpwardSpeed, spawnsTooManyForEachTry, squaredAttackRange, swimUpward, tick, tickNewAi, tryAttack, tryEquip, turnHead, updateDropChances, updateEnchantments, updateGoalControlsMethods inherited from class net.minecraft.entity.LivingEntity
addPowderSnowSlowIfNeeded, addSoulSpeedBoostIfNeeded, addStatusEffect, animateDamage, applyArmorToDamage, applyDamage, applyEnchantmentsToDamage, applyMovementEffects, applyStatusEffect, attackLivingEntity, blockedByShield, canBeRiddenInWater, canBreatheInWater, canFreeze, canHaveStatusEffect, canSee, canTakeDamage, canTarget, canWalkOnFluid, clearActiveItem, clearPotionSwirls, clearSleepingPosition, clearStatusEffects, collides, computeFallDamage, consumeItem, containsOnlyAmbientEffects, createLivingAttributes, createSpawnPacket, damageArmor, damageHelmet, damageShield, displaySoulSpeedEffects, drop, dropInventory, dropXp, eatFood, endCombat, enterCombat, fall, getAbsorptionAmount, getActiveHand, getActiveItem, getActiveStatusEffects, getArmor, getArmorVisibility, getAttackDistanceScalingFactor, getAttacker, getAttacking, getAttributeBaseValue, getAttributeInstance, getAttributes, getAttributeValue, getBaseMovementSpeedMultiplier, getBoundingBox, getClimbingPos, getCommandItemSlot, 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, hasNoDrag, hasStackEquipped, hasStatusEffect, heal, hurtByWater, isAffectedBySplashPotions, isAlive, isBlocking, isClimbing, isDead, isFallFlying, isGlowing, isHolding, isHolding, isHoldingOntoLadder, isImmobile, isInsideWall, isInSwimmingPose, isMobOrPlayer, isOnSoulSpeedBlock, isPartOfGame, isPushable, isSleeping, isTarget, isUndead, isUsingItem, isUsingRiptide, jump, kill, knockback, knockDownwards, lookAt, markEffectsDirty, method_26317, method_26318, method_37119, method_37222, onAttacking, onDeath, onEquipStack, onKilledBy, onStatusEffectApplied, onStatusEffectRemoved, onStatusEffectUpgraded, playBlockFallSound, positionInPortal, positionInPortal, pushAway, pushAwayFrom, readFromPacket, removePowderSnowSlow, removeSoulSpeedBoost, removeStatusEffect, removeStatusEffectInternal, scheduleVelocityUpdate, sendEquipmentBreakStatus, sendPickup, sendToolBreakStatus, setAbsorptionAmount, setAttacker, setAttacking, setBodyYaw, setCurrentHand, setDespawnCounter, setHeadYaw, setHealth, setJumping, setLivingFlag, setNearbySongPlaying, setNoDrag, setOnGround, setRiptideTicks, setSleepingPosition, setSprinting, setStackInHand, setStingerCount, setStuckArrowCount, shouldAlwaysDropXp, shouldDisplaySoulSpeedEffects, shouldRemoveSoulSpeedBoost, shouldRenderName, shouldSwimInFluids, sleep, spawnConsumptionEffects, stopRiding, stopUsingItem, swingHand, swingHand, takeKnockback, takeShieldHit, teleport, tickCramming, tickHandSwing, tickInVoid, tickRiding, tickRiptide, tickStatusEffects, travel, triggerItemPickedUpByEntityCriteria, updateLimbs, updatePostDeath, updatePotionVisibility, updateTrackedHeadRotation, updateTrackedPositionAndAngles, wakeUpMethods inherited from class net.minecraft.entity.Entity
addAirTravelEffects, addFlapEffects, addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, applyMirror, applyRotation, attemptTickInVoid, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeSpectated, canExplosionDestroyBlock, canModifyAt, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, collidesWith, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, dealDamage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, extinguish, getAir, getBlockPos, getBlockStateAtPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraBlockPos, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getGameEventHandler, getHeight, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getMoveEffect, getMovementDirection, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPitch, getPortalRect, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getStandingEyeHeight, getSwimHeight, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getX, getY, getYaw, getZ, handleAttack, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interactAt, isAttackable, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isFreezing, isGlowingLocal, isImmuneToExplosion, isInLava, isInRange, isInsideWaterOrBubbleColumn, isInSneakingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isOnFire, isOnGround, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, method_30951, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onRemoved, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, playExtinguishSound, playSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, remove, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, resetNetherPortalCooldown, resetPosition, saveNbt, saveSelfNbt, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setFrozenTicks, setGlowing, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setListener, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setPitch, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSwimming, setUuid, setVelocity, setVelocity, setVelocityClient, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, startRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, tickNetherPortal, tickNetherPortalCooldown, toNbtList, toNbtList, toString, tryCheckBlockCollision, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerForDismount, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutput
cannotBeSilencedMethods inherited from interface net.minecraft.entity.CrossbowUser
getProjectileLaunchVelocity, getTarget, shoot, shoot
-
Field Details
-
BABY
- Mappings:
Namespace Name Mixin selector official bTLbiz;bT:Lwf;intermediary field_22377Lnet/minecraft/class_4836;field_22377:Lnet/minecraft/class_2940;named BABYLnet/minecraft/entity/mob/PiglinEntity;BABY:Lnet/minecraft/entity/data/TrackedData;
-
CHARGING
- Mappings:
Namespace Name Mixin selector official bULbiz;bU:Lwf;intermediary field_22378Lnet/minecraft/class_4836;field_22378:Lnet/minecraft/class_2940;named CHARGINGLnet/minecraft/entity/mob/PiglinEntity;CHARGING:Lnet/minecraft/entity/data/TrackedData;
-
DANCING
- Mappings:
Namespace Name Mixin selector official bVLbiz;bV:Lwf;intermediary field_25164Lnet/minecraft/class_4836;field_25164:Lnet/minecraft/class_2940;named DANCINGLnet/minecraft/entity/mob/PiglinEntity;DANCING:Lnet/minecraft/entity/data/TrackedData;
-
BABY_SPEED_BOOST_ID
- Mappings:
Namespace Name Mixin selector official bWLbiz;bW:Ljava/util/UUID;intermediary field_22379Lnet/minecraft/class_4836;field_22379:Ljava/util/UUID;named BABY_SPEED_BOOST_IDLnet/minecraft/entity/mob/PiglinEntity;BABY_SPEED_BOOST_ID:Ljava/util/UUID;
-
BABY_SPEED_BOOST
- Mappings:
Namespace Name Mixin selector official bXLbiz;bX:Laus;intermediary field_22380Lnet/minecraft/class_4836;field_22380:Lnet/minecraft/class_1322;named BABY_SPEED_BOOSTLnet/minecraft/entity/mob/PiglinEntity;BABY_SPEED_BOOST:Lnet/minecraft/entity/attribute/EntityAttributeModifier;
-
field_30548
private static final int field_30548- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official bYLbiz;bY:Iintermediary field_30548Lnet/minecraft/class_4836;field_30548:Inamed field_30548Lnet/minecraft/entity/mob/PiglinEntity;field_30548:I
-
field_30549
private static final float field_30549- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official bZLbiz;bZ:Fintermediary field_30549Lnet/minecraft/class_4836;field_30549:Fnamed field_30549Lnet/minecraft/entity/mob/PiglinEntity;field_30549:F
-
field_30550
private static final int field_30550- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official caLbiz;ca:Iintermediary field_30550Lnet/minecraft/class_4836;field_30550:Inamed field_30550Lnet/minecraft/entity/mob/PiglinEntity;field_30550:I
-
field_30551
private static final float field_30551- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official cbLbiz;cb:Fintermediary field_30551Lnet/minecraft/class_4836;field_30551:Fnamed field_30551Lnet/minecraft/entity/mob/PiglinEntity;field_30551:F
-
field_30552
private static final float field_30552- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official ccLbiz;cc:Fintermediary field_30552Lnet/minecraft/class_4836;field_30552:Fnamed field_30552Lnet/minecraft/entity/mob/PiglinEntity;field_30552:F
-
field_30553
private static final int field_30553- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official cdLbiz;cd:Iintermediary field_30553Lnet/minecraft/class_4836;field_30553:Inamed field_30553Lnet/minecraft/entity/mob/PiglinEntity;field_30553:I
-
field_30554
private static final float field_30554- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official ceLbiz;ce:Fintermediary field_30554Lnet/minecraft/class_4836;field_30554:Fnamed field_30554Lnet/minecraft/entity/mob/PiglinEntity;field_30554:F
-
field_30555
private static final float field_30555- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official cfLbiz;cf:Fintermediary field_30555Lnet/minecraft/class_4836;field_30555:Fnamed field_30555Lnet/minecraft/entity/mob/PiglinEntity;field_30555:F
-
field_30556
private static final double field_30556- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official cgLbiz;cg:Dintermediary field_30556Lnet/minecraft/class_4836;field_30556:Dnamed field_30556Lnet/minecraft/entity/mob/PiglinEntity;field_30556:D
-
SENSOR_TYPES
protected static final ImmutableList<SensorType<? extends Sensor<? super PiglinEntity>>> SENSOR_TYPES- Mappings:
Namespace Name Mixin selector official eLbiz;e:Lcom/google/common/collect/ImmutableList;intermediary field_22376Lnet/minecraft/class_4836;field_22376:Lcom/google/common/collect/ImmutableList;named SENSOR_TYPESLnet/minecraft/entity/mob/PiglinEntity;SENSOR_TYPES:Lcom/google/common/collect/ImmutableList;
-
MEMORY_MODULE_TYPES
- Mappings:
Namespace Name Mixin selector official bSLbiz;bS:Lcom/google/common/collect/ImmutableList;intermediary field_22381Lnet/minecraft/class_4836;field_22381:Lcom/google/common/collect/ImmutableList;named MEMORY_MODULE_TYPESLnet/minecraft/entity/mob/PiglinEntity;MEMORY_MODULE_TYPES:Lcom/google/common/collect/ImmutableList;
-
inventory
- Mappings:
Namespace Name Mixin selector official chLbiz;ch:Lasf;intermediary field_22371Lnet/minecraft/class_4836;field_22371:Lnet/minecraft/class_1277;named inventoryLnet/minecraft/entity/mob/PiglinEntity;inventory:Lnet/minecraft/inventory/SimpleInventory;
-
cannotHunt
private boolean cannotHunt- Mappings:
Namespace Name Mixin selector official ciLbiz;ci:Zintermediary field_23738Lnet/minecraft/class_4836;field_23738:Znamed cannotHuntLnet/minecraft/entity/mob/PiglinEntity;cannotHunt:Z
-
-
Constructor Details
-
PiglinEntity
- Mappings:
Namespace Name Mixin selector official <init>Latf;<init>(Latj;Lbwp;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
-
Method Details
-
writeCustomDataToNbt
- Overrides:
writeCustomDataToNbtin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official bLatf;b(Lna;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readCustomDataFromNbt
- Overrides:
readCustomDataFromNbtin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official aLatf;a(Lna;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
getInventory
- Specified by:
getInventoryin interfaceInventoryOwner- Mappings:
Namespace Name Mixin selector official fFLbjo;fF()Lart;intermediary method_35199Lnet/minecraft/class_6067;method_35199()Lnet/minecraft/class_1263;named getInventoryLnet/minecraft/entity/InventoryOwner;getInventory()Lnet/minecraft/inventory/Inventory;
-
dropEquipment
- Overrides:
dropEquipmentin classMobEntity- Mappings:
Namespace Name Mixin selector official aLatt;a(Lasp;IZ)Vintermediary method_6099Lnet/minecraft/class_1309;method_6099(Lnet/minecraft/class_1282;IZ)Vnamed dropEquipmentLnet/minecraft/entity/LivingEntity;dropEquipment(Lnet/minecraft/entity/damage/DamageSource;IZ)V
-
addItem
- Mappings:
Namespace Name Mixin selector official lLbiz;l(Lbqp;)Lbqp;intermediary method_24711Lnet/minecraft/class_4836;method_24711(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;named addItemLnet/minecraft/entity/mob/PiglinEntity;addItem(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
-
canInsertIntoInventory
- Mappings:
Namespace Name Mixin selector official mLbiz;m(Lbqp;)Zintermediary method_27085Lnet/minecraft/class_4836;method_27085(Lnet/minecraft/class_1799;)Znamed canInsertIntoInventoryLnet/minecraft/entity/mob/PiglinEntity;canInsertIntoInventory(Lnet/minecraft/item/ItemStack;)Z
-
initDataTracker
protected void initDataTracker()- Overrides:
initDataTrackerin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official a_Latf;a_()Vintermediary method_5693Lnet/minecraft/class_1297;method_5693()Vnamed initDataTrackerLnet/minecraft/entity/Entity;initDataTracker()V
-
onTrackedDataSet
- Overrides:
onTrackedDataSetin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLatf;a(Lwf;)Vintermediary method_5674Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)Vnamed onTrackedDataSetLnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
-
createPiglinAttributes
- Mappings:
Namespace Name Mixin selector official fBLbiz;fB()Laut$a;intermediary method_26953Lnet/minecraft/class_4836;method_26953()Lnet/minecraft/class_5132$class_5133;named createPiglinAttributesLnet/minecraft/entity/mob/PiglinEntity;createPiglinAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
-
canSpawn
public static boolean canSpawn(EntityType<PiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)- Mappings:
Namespace Name Mixin selector official bLbiz;b(Latj;Lbwq;Latx;Lgg;Ljava/util/Random;)Zintermediary method_24695Lnet/minecraft/class_4836;method_24695(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Ljava/util/Random;)Znamed canSpawnLnet/minecraft/entity/mob/PiglinEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)Z
-
initialize
@Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable NbtCompound entityNbt)- Overrides:
initializein classMobEntity- Mappings:
Namespace Name Mixin selector official aLatv;a(Lbxd;Lary;Latx;Laul;Lna;)Laul;intermediary method_5943Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;Lnet/minecraft/class_2487;)Lnet/minecraft/class_1315;named initializeLnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/entity/EntityData;
-
isDisallowedInPeaceful
protected boolean isDisallowedInPeaceful()- Overrides:
isDisallowedInPeacefulin classHostileEntity- Mappings:
Namespace Name Mixin selector official QLatv;Q()Zintermediary method_23734Lnet/minecraft/class_1308;method_23734()Znamed isDisallowedInPeacefulLnet/minecraft/entity/mob/MobEntity;isDisallowedInPeaceful()Z
-
canImmediatelyDespawn
public boolean canImmediatelyDespawn(double distanceSquared)- Overrides:
canImmediatelyDespawnin classMobEntity- Mappings:
Namespace Name Mixin selector official hLatv;h(D)Zintermediary method_5974Lnet/minecraft/class_1308;method_5974(D)Znamed canImmediatelyDespawnLnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
-
initEquipment
- Overrides:
initEquipmentin classMobEntity- Mappings:
Namespace Name Mixin selector official aLatv;a(Lary;)Vintermediary method_5964Lnet/minecraft/class_1308;method_5964(Lnet/minecraft/class_1266;)Vnamed initEquipmentLnet/minecraft/entity/mob/MobEntity;initEquipment(Lnet/minecraft/world/LocalDifficulty;)V
-
equipAtChance
- Mappings:
Namespace Name Mixin selector official cLbiz;c(Latk;Lbqp;)Vintermediary method_24696Lnet/minecraft/class_4836;method_24696(Lnet/minecraft/class_1304;Lnet/minecraft/class_1799;)Vnamed equipAtChanceLnet/minecraft/entity/mob/PiglinEntity;equipAtChance(Lnet/minecraft/entity/EquipmentSlot;Lnet/minecraft/item/ItemStack;)V
-
createBrainProfile
- Overrides:
createBrainProfilein classLivingEntity- Mappings:
Namespace Name Mixin selector official dpLatt;dp()Lauo$b;intermediary method_28306Lnet/minecraft/class_1309;method_28306()Lnet/minecraft/class_4095$class_5303;named createBrainProfileLnet/minecraft/entity/LivingEntity;createBrainProfile()Lnet/minecraft/entity/ai/brain/Brain$Profile;
-
deserializeBrain
- Overrides:
deserializeBrainin classLivingEntity- Mappings:
Namespace Name Mixin selector official aLatt;a(Lcom/mojang/serialization/Dynamic;)Lauo;intermediary method_18867Lnet/minecraft/class_1309;method_18867(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_4095;named deserializeBrainLnet/minecraft/entity/LivingEntity;deserializeBrain(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/entity/ai/brain/Brain;
-
getBrain
- Overrides:
getBrainin classLivingEntity- Mappings:
Namespace Name Mixin selector official doLatt;do()Lauo;intermediary method_18868Lnet/minecraft/class_1309;method_18868()Lnet/minecraft/class_4095;named getBrainLnet/minecraft/entity/LivingEntity;getBrain()Lnet/minecraft/entity/ai/brain/Brain;
-
interactMob
- Overrides:
interactMobin classMobEntity- Mappings:
Namespace Name Mixin selector official bLatv;b(Lbkd;Larz;)Lasa;intermediary method_5992Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;named interactMobLnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
-
getActiveEyeHeight
- Overrides:
getActiveEyeHeightin classLivingEntity- Mappings:
Namespace Name Mixin selector official bLatt;b(Lauf;Latg;)Fintermediary method_18394Lnet/minecraft/class_1309;method_18394(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)Fnamed getActiveEyeHeightLnet/minecraft/entity/LivingEntity;getActiveEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F
-
getMountedHeightOffset
public double getMountedHeightOffset()- Overrides:
getMountedHeightOffsetin classEntity- Mappings:
Namespace Name Mixin selector official blLatf;bl()Dintermediary method_5621Lnet/minecraft/class_1297;method_5621()Dnamed getMountedHeightOffsetLnet/minecraft/entity/Entity;getMountedHeightOffset()D
-
setBaby
public void setBaby(boolean baby) -
isBaby
public boolean isBaby()- Overrides:
isBabyin classLivingEntity- Mappings:
Namespace Name Mixin selector official w_Latt;w_()Zintermediary method_6109Lnet/minecraft/class_1309;method_6109()Znamed isBabyLnet/minecraft/entity/LivingEntity;isBaby()Z
-
setCannotHunt
private void setCannotHunt(boolean cannotHunt)- Mappings:
Namespace Name Mixin selector official xLbiz;x(Z)Vintermediary method_26954Lnet/minecraft/class_4836;method_26954(Z)Vnamed setCannotHuntLnet/minecraft/entity/mob/PiglinEntity;setCannotHunt(Z)V
-
canHunt
protected boolean canHunt()- Specified by:
canHuntin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official nLbiy;n()Zintermediary method_26952Lnet/minecraft/class_5418;method_26952()Znamed canHuntLnet/minecraft/entity/mob/AbstractPiglinEntity;canHunt()Z
-
mobTick
protected void mobTick()- Overrides:
mobTickin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official eXLatv;eX()Vintermediary method_5958Lnet/minecraft/class_1308;method_5958()Vnamed mobTickLnet/minecraft/entity/mob/MobEntity;mobTick()V
-
getXpToDrop
Called when this entity is killed and returns the amount of experience to drop.playermay benullif shouldAlwaysDropXp() returnstrue.- Overrides:
getXpToDropin classMobEntity- Parameters:
player- the attacking player- See Also:
LivingEntity.dropXp(),LivingEntity.shouldAlwaysDropXp(),LivingEntity.shouldDropXp()- Mappings:
Namespace Name Mixin selector official dLatt;d(Lbkd;)Iintermediary method_6110Lnet/minecraft/class_1309;method_6110(Lnet/minecraft/class_1657;)Inamed getXpToDropLnet/minecraft/entity/LivingEntity;getXpToDrop(Lnet/minecraft/entity/player/PlayerEntity;)I
-
zombify
- Overrides:
zombifyin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official cLbiy;c(Labr;)Vintermediary method_24694Lnet/minecraft/class_5418;method_24694(Lnet/minecraft/class_3218;)Vnamed zombifyLnet/minecraft/entity/mob/AbstractPiglinEntity;zombify(Lnet/minecraft/server/world/ServerWorld;)V
-
makeInitialWeapon
- Mappings:
Namespace Name Mixin selector official fDLbiz;fD()Lbqp;intermediary method_24702Lnet/minecraft/class_4836;method_24702()Lnet/minecraft/class_1799;named makeInitialWeaponLnet/minecraft/entity/mob/PiglinEntity;makeInitialWeapon()Lnet/minecraft/item/ItemStack;
-
isCharging
private boolean isCharging()- Mappings:
Namespace Name Mixin selector official fELbiz;fE()Zintermediary method_24703Lnet/minecraft/class_4836;method_24703()Znamed isChargingLnet/minecraft/entity/mob/PiglinEntity;isCharging()Z
-
setCharging
public void setCharging(boolean charging)- Specified by:
setChargingin interfaceCrossbowUser- Mappings:
Namespace Name Mixin selector official bLbhk;b(Z)Vintermediary method_7110Lnet/minecraft/class_3745;method_7110(Z)Vnamed setChargingLnet/minecraft/entity/CrossbowUser;setCharging(Z)V
-
postShoot
public void postShoot()- Specified by:
postShootin interfaceCrossbowUser- Mappings:
Namespace Name Mixin selector official aLbhk;a()Vintermediary method_24651Lnet/minecraft/class_3745;method_24651()Vnamed postShootLnet/minecraft/entity/CrossbowUser;postShoot()V
-
getActivity
- Specified by:
getActivityin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official fwLbiy;fw()Lbjb;intermediary method_24705Lnet/minecraft/class_5418;method_24705()Lnet/minecraft/class_4837;named getActivityLnet/minecraft/entity/mob/AbstractPiglinEntity;getActivity()Lnet/minecraft/entity/mob/PiglinActivity;
-
isDancing
public boolean isDancing()- Mappings:
Namespace Name Mixin selector official fCLbiz;fC()Zintermediary method_29272Lnet/minecraft/class_4836;method_29272()Znamed isDancingLnet/minecraft/entity/mob/PiglinEntity;isDancing()Z
-
setDancing
public void setDancing(boolean dancing)- Mappings:
Namespace Name Mixin selector official wLbiz;w(Z)Vintermediary method_29274Lnet/minecraft/class_4836;method_29274(Z)Vnamed setDancingLnet/minecraft/entity/mob/PiglinEntity;setDancing(Z)V
-
damage
- Overrides:
damagein classLivingEntity- Mappings:
Namespace Name Mixin selector official aLatf;a(Lasp;F)Zintermediary method_5643Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Znamed damageLnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
-
attack
- Specified by:
attackin interfaceRangedAttackMob- Mappings:
Namespace Name Mixin selector official aLbib;a(Latt;F)Vintermediary method_7105Lnet/minecraft/class_1603;method_7105(Lnet/minecraft/class_1309;F)Vnamed attackLnet/minecraft/entity/ai/RangedAttackMob;attack(Lnet/minecraft/entity/LivingEntity;F)V
-
shoot
public void shoot(LivingEntity target, ItemStack crossbow, ProjectileEntity projectile, float multiShotSpray)- Specified by:
shootin interfaceCrossbowUser- Mappings:
Namespace Name Mixin selector official aLbhk;a(Latt;Lbqp;Lbkt;F)Vintermediary method_18811Lnet/minecraft/class_3745;method_18811(Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;Lnet/minecraft/class_1676;F)Vnamed shootLnet/minecraft/entity/CrossbowUser;shoot(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/projectile/ProjectileEntity;F)V
-
canUseRangedWeapon
- Overrides:
canUseRangedWeaponin classMobEntity- Mappings:
Namespace Name Mixin selector official aLatv;a(Lbrd;)Zintermediary method_25938Lnet/minecraft/class_1308;method_25938(Lnet/minecraft/class_1811;)Znamed canUseRangedWeaponLnet/minecraft/entity/mob/MobEntity;canUseRangedWeapon(Lnet/minecraft/item/RangedWeaponItem;)Z
-
equipToMainHand
- Mappings:
Namespace Name Mixin selector official nLbiz;n(Lbqp;)Vintermediary method_24844Lnet/minecraft/class_4836;method_24844(Lnet/minecraft/class_1799;)Vnamed equipToMainHandLnet/minecraft/entity/mob/PiglinEntity;equipToMainHand(Lnet/minecraft/item/ItemStack;)V
-
equipToOffHand
- Mappings:
Namespace Name Mixin selector official oLbiz;o(Lbqp;)Vintermediary method_24845Lnet/minecraft/class_4836;method_24845(Lnet/minecraft/class_1799;)Vnamed equipToOffHandLnet/minecraft/entity/mob/PiglinEntity;equipToOffHand(Lnet/minecraft/item/ItemStack;)V
-
canGather
-
canEquipStack
Returns whether this piglin can equip into or replace current equipment slot.- Mappings:
Namespace Name Mixin selector official pLbiz;p(Lbqp;)Zintermediary method_24846Lnet/minecraft/class_4836;method_24846(Lnet/minecraft/class_1799;)Znamed canEquipStackLnet/minecraft/entity/mob/PiglinEntity;canEquipStack(Lnet/minecraft/item/ItemStack;)Z
-
prefersNewEquipment
- Overrides:
prefersNewEquipmentin classMobEntity- Mappings:
Namespace Name Mixin selector official aLatv;a(Lbqp;Lbqp;)Zintermediary method_5955Lnet/minecraft/class_1308;method_5955(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Znamed prefersNewEquipmentLnet/minecraft/entity/mob/MobEntity;prefersNewEquipment(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
-
loot
-
startRiding
- Overrides:
startRidingin classMobEntity- Mappings:
Namespace Name Mixin selector official aLatf;a(Latf;Z)Zintermediary method_5873Lnet/minecraft/class_1297;method_5873(Lnet/minecraft/class_1297;Z)Znamed startRidingLnet/minecraft/entity/Entity;startRiding(Lnet/minecraft/entity/Entity;Z)Z
-
getTopMostPassenger
Returns the passenger entity atmaxLevelin a stacked riding (riding on an entity that is riding on another entity, etc).If the number of stacked entities is less than
maxLevel, returns the top most passenger entity.- Mappings:
Namespace Name Mixin selector official bLbiz;b(Latf;I)Latf;intermediary method_26089Lnet/minecraft/class_4836;method_26089(Lnet/minecraft/class_1297;I)Lnet/minecraft/class_1297;named getTopMostPassengerLnet/minecraft/entity/mob/PiglinEntity;getTopMostPassenger(Lnet/minecraft/entity/Entity;I)Lnet/minecraft/entity/Entity;
-
getAmbientSound
- Overrides:
getAmbientSoundin classMobEntity- Mappings:
Namespace Name Mixin selector official qLatv;q()Lafd;intermediary method_5994Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;named getAmbientSoundLnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
-
getHurtSound
- Overrides:
getHurtSoundin classHostileEntity- Mappings:
Namespace Name Mixin selector official cLatt;c(Lasp;)Lafd;intermediary method_6011Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;named getHurtSoundLnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
-
getDeathSound
- Overrides:
getDeathSoundin classHostileEntity- Mappings:
Namespace Name Mixin selector official v_Latt;v_()Lafd;intermediary method_6002Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;named getDeathSoundLnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
-
playStepSound
- Overrides:
playStepSoundin classEntity- Mappings:
Namespace Name Mixin selector official bLatf;b(Lgg;Lcks;)Vintermediary method_5712Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed playStepSoundLnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
playSound
- Mappings:
Namespace Name Mixin selector official aLbiz;a(Lafd;)Vintermediary method_30086Lnet/minecraft/class_4836;method_30086(Lnet/minecraft/class_3414;)Vnamed playSoundLnet/minecraft/entity/mob/PiglinEntity;playSound(Lnet/minecraft/sound/SoundEvent;)V
-
playZombificationSound
protected void playZombificationSound()- Specified by:
playZombificationSoundin classAbstractPiglinEntity- Mappings:
Namespace Name Mixin selector official fyLbiy;fy()Vintermediary method_30238Lnet/minecraft/class_5418;method_30238()Vnamed playZombificationSoundLnet/minecraft/entity/mob/AbstractPiglinEntity;playZombificationSound()V
-