Class PiglinEntity
- java.lang.Object
-
- All Implemented Interfaces:
ICommandSource
,ICrossbowUser
,IRangedAttackMob
,IMob
,INameable
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeEntity
,INBTSerializable<CompoundNBT>
public class PiglinEntity extends AbstractPiglinEntity implements ICrossbowUser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.IMoveCallback
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
cannotHunt
private static DataParameter<java.lang.Boolean>
DATA_BABY_ID
private static DataParameter<java.lang.Boolean>
DATA_IS_CHARGING_CROSSBOW
private static DataParameter<java.lang.Boolean>
DATA_IS_DANCING
private Inventory
inventory
protected static com.google.common.collect.ImmutableList<MemoryModuleType<?>>
MEMORY_TYPES
protected static com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super PiglinEntity>>>
SENSOR_TYPES
private static AttributeModifier
SPEED_MODIFIER_BABY
private static java.util.UUID
SPEED_MODIFIER_BABY_UUID
-
Fields inherited from class net.minecraft.entity.monster.piglin.AbstractPiglinEntity
DATA_IMMUNE_TO_ZOMBIFICATION, timeInOverworld
-
Fields inherited from class net.minecraft.entity.MobEntity
ambientSoundTime, armorDropChances, goalSelector, handDropChances, jumpControl, lookControl, moveControl, navigation, targetSelector, xpReward
-
Fields inherited from class net.minecraft.entity.LivingEntity
animationPosition, animationSpeed, animationSpeedOld, animStep, animStepO, attackAnim, attackStrengthTicker, autoSpinAttackTicks, brain, DATA_LIVING_ENTITY_FLAGS, dead, deathScore, deathTime, fallFlyTicks, flyingSpeed, hurtDir, hurtDuration, hurtTime, invulnerableDuration, jumping, lastHurt, lastHurtByPlayer, lastHurtByPlayerTime, lerpHeadSteps, lerpSteps, lerpX, lerpXRot, lerpY, lerpYRot, lerpZ, lyHeadRot, noActionTime, oAttackAnim, oRun, removeArrowTime, removeStingerTime, rotA, rotOffs, run, SLEEPING_DIMENSIONS, swinging, swingingArm, swingTime, timeOffs, useItem, useItemRemaining, xxa, yBodyRot, yBodyRotO, yHeadRot, yHeadRotO, yya, zza
-
Fields inherited from class net.minecraft.entity.Entity
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, ENTITY_COUNTER, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld
-
Fields inherited from interface net.minecraft.command.ICommandSource
NULL
-
-
Constructor Summary
Constructors Constructor Description PiglinEntity(EntityType<? extends AbstractPiglinEntity> p_i231570_1_, World p_i231570_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAdditionalSaveData(CompoundNBT p_213281_1_)
protected ItemStack
addToInventory(ItemStack p_234436_1_)
protected Brain.BrainCodec<PiglinEntity>
brainProvider()
protected boolean
canAddToInventory(ItemStack p_234437_1_)
boolean
canFireProjectileWeapon(ShootableItem p_230280_1_)
protected boolean
canHunt()
protected boolean
canReplaceCurrentItem(ItemStack p_234440_1_)
protected boolean
canReplaceCurrentItem(ItemStack p_208003_1_, ItemStack p_208003_2_)
static boolean
checkPiglinSpawnRules(EntityType<PiglinEntity> p_234418_0_, IWorld p_234418_1_, SpawnReason p_234418_2_, BlockPos p_234418_3_, java.util.Random p_234418_4_)
static AttributeModifierMap.MutableAttribute
createAttributes()
private ItemStack
createSpawnWeapon()
protected void
customServerAiStep()
protected void
defineSynchedData()
protected void
dropCustomDeathLoot(DamageSource p_213333_1_, int p_213333_2_, boolean p_213333_3_)
ILivingEntityData
finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, ILivingEntityData p_213386_4_, CompoundNBT p_213386_5_)
protected void
finishConversion(ServerWorld p_234416_1_)
protected SoundEvent
getAmbientSound()
PiglinAction
getArmPose()
Brain<PiglinEntity>
getBrain()
protected SoundEvent
getDeathSound()
protected int
getExperienceReward(PlayerEntity p_70693_1_)
protected SoundEvent
getHurtSound(DamageSource p_184601_1_)
double
getPassengersRidingOffset()
protected float
getStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_)
private Entity
getTopPassenger(Entity p_234417_1_, int p_234417_2_)
protected void
holdInMainHand(ItemStack p_234438_1_)
protected void
holdInOffHand(ItemStack p_234439_1_)
boolean
hurt(DamageSource p_70097_1_, float p_70097_2_)
boolean
isBaby()
private boolean
isChargingCrossbow()
boolean
isDancing()
protected Brain<?>
makeBrain(com.mojang.serialization.Dynamic<?> p_213364_1_)
private void
maybeWearArmor(EquipmentSlotType p_234419_1_, ItemStack p_234419_2_)
ActionResultType
mobInteract(PlayerEntity p_230254_1_, Hand p_230254_2_)
void
onCrossbowAttackPerformed()
void
onSyncedDataUpdated(DataParameter<?> p_184206_1_)
void
performRangedAttack(LivingEntity p_82196_1_, float p_82196_2_)
protected void
pickUpItem(ItemEntity p_175445_1_)
protected void
playConvertedSound()
protected void
playSound(SoundEvent p_241417_1_)
protected void
playStepSound(BlockPos p_180429_1_, BlockState p_180429_2_)
protected void
populateDefaultEquipmentSlots(DifficultyInstance p_180481_1_)
void
readAdditionalSaveData(CompoundNBT p_70037_1_)
boolean
removeWhenFarAway(double p_213397_1_)
void
setBaby(boolean p_82227_1_)
private void
setCannotHunt(boolean p_234443_1_)
void
setChargingCrossbow(boolean p_213671_1_)
void
setDancing(boolean p_234442_1_)
void
shootCrossbowProjectile(LivingEntity p_230284_1_, ItemStack p_230284_2_, ProjectileEntity p_230284_3_, float p_230284_4_)
protected boolean
shouldDespawnInPeaceful()
boolean
startRiding(Entity p_184205_1_, boolean p_184205_2_)
boolean
wantsToPickUp(ItemStack p_230293_1_)
-
Methods inherited from class net.minecraft.entity.monster.piglin.AbstractPiglinEntity
getMyRidingOffset, getTarget, isAdult, isConverting, isHoldingMeleeWeapon, isImmuneToZombification, playAmbientSound, sendDebugPackets, setImmuneToZombification
-
Methods inherited from class net.minecraft.entity.monster.MonsterEntity
aiStep, checkAnyLightMonsterSpawnRules, checkMonsterSpawnRules, createMonsterAttributes, getFallDamageSound, getProjectile, getSoundSource, getSwimSound, getSwimSplashSound, getWalkTargetValue, isDarkEnoughToSpawn, isPreventingPlayerRest, shouldDropExperience, shouldDropLoot, updateNoActionTime
-
Methods inherited from class net.minecraft.entity.CreatureEntity
checkSpawnRules, followLeashSpeed, getWalkTargetValue, isPathFinding, onLeashDistance, tickLeash
-
Methods inherited from class net.minecraft.entity.MobEntity
ate, baseTick, canAttack, canAttackType, canBeControlledByRider, canBeLeashed, canCutCorner, canHoldItem, canPickUpLoot, canReplaceEqualItem, canTakeItem, checkDespawn, checkMobSpawnRules, checkSpawnObstruction, convertTo, createBodyControl, createLootContext, createMobAttributes, createNavigation, doHurtTarget, dropFromLootTable, dropLeash, enchantSpawnedArmor, enchantSpawnedWeapon, equipItemIfPossible, getAmbientSoundInterval, getArmorSlots, getDefaultLootTable, getEquipmentDropChance, getEquipmentForSlot, getEquipmentSlotForItem, getHandSlots, getHeadRotSpeed, getItemBySlot, getJumpControl, getLeashHolder, getLookControl, getLootTable, getMainArm, getMaxFallDistance, getMaxHeadXRot, getMaxHeadYRot, getMaxSpawnClusterSize, getMoveControl, getNavigation, getPathfindingMalus, getRestrictCenter, getRestrictRadius, getSensing, handleEntityEvent, hasRestriction, interact, isAggressive, isControlledByLocalInstance, isEffectiveAi, isLeashed, isLeftHanded, isMaxGroupSizeReached, isNoAi, isPersistenceRequired, isSunBurnTick, isValidSlotForItem, isWithinRestriction, isWithinRestriction, jumpInLiquid, lookAt, onOffspringSpawnedFromEgg, playHurtSound, populateDefaultEquipmentEnchantments, registerGoals, removeAfterChangingDimensions, requiresCustomPersistence, restrictTo, serverAiStep, setAggressive, setCanPickUpLoot, setDelayedLeashHolderId, setDropChance, setGuaranteedDrop, setItemSlot, setItemSlotAndDropWhenKilled, setLeashedTo, setLeftHanded, setNoAi, setPathfindingMalus, setPersistenceRequired, setSlot, setSpeed, setTarget, setXxa, setYya, setZza, shouldPassengersInheritMalus, spawnAnim, tick, tickHeadTurn, updateControlFlags
-
Methods inherited from class net.minecraft.entity.LivingEntity
actuallyHurt, addEffect, animateHurt, areAllEffectsAmbient, attackable, blockedByShield, blockUsingShield, broadcastBreakEvent, broadcastBreakEvent, calculateEntityAnimation, calculateFallDamage, canAttack, canBeAffected, canBreatheUnderwater, canSee, canSpawnSoulSpeedParticle, canStandOnFluid, causeFallDamage, checkAutoSpinAttack, checkFallDamage, clearSleepingPos, completeUsingItem, createLivingAttributes, createWitherRose, curePotionEffects, decreaseAirSupply, die, doAutoAttackOnTouch, doPush, dropAllDeathLoot, dropEquipment, dropExperience, eat, forceAddEffect, getAbsorptionAmount, getActiveEffects, getActiveEffectsMap, getAddEntityPacket, getArmorCoverPercentage, getArmorValue, getArrowCount, getAttackAnim, getAttribute, getAttributeBaseValue, getAttributes, getAttributeValue, getBedOrientation, getBlockSpeedFactor, getBoundingBoxForCulling, getCapability, getCombatTracker, getDamageAfterArmorAbsorb, getDamageAfterMagicAbsorb, getDimensions, getDismountPoses, getDrinkingSound, getEatingSound, getEffect, getEyeHeight, getFallFlyingTicks, getFeetBlockState, getFluidFallingAdjustedMovement, getHealth, getItemInHand, getJumpPower, getKillCredit, getLastClimbablePos, getLastDamageSource, getLastHurtByMob, getLastHurtByMobTimestamp, getLastHurtMob, getLastHurtMobTimestamp, getLocalBoundsForPose, getMainHandItem, getMaxHealth, getMobType, getNoActionTime, getOffhandItem, getRandom, getRelativePortalPosition, getScale, getSleepingPos, getSoundVolume, getSpeed, getStingerCount, getSwimAmount, getTicksUsingItem, getUsedItemHand, getUseItem, getUseItemRemainingTicks, getViewYRot, getVisibilityPercent, getVoicePitch, getWaterSlowDown, getYHeadRot, goDownInWater, handleRelativeFrictionAndCalculateMovement, hasEffect, hasItemInSlot, heal, hurtArmor, hurtCurrentlyUsedShield, increaseAirSupply, invalidateCaps, isAffectedByFluids, isAffectedByPotions, isAlive, isAlwaysExperienceDropper, isAutoSpinAttack, isBlocking, isDeadOrDying, isFallFlying, isHolding, isHolding, isImmobile, isInvertedHealAndHarm, isInWall, isPickable, isPushable, isSensitiveToWater, isSleeping, isSuppressingSlidingDownLadder, isUsingItem, isVisuallySwimming, jumpFromGround, kill, knockback, lerpHeadTo, lerpTo, lookAt, markHurt, onChangedBlock, onClimbable, onEffectAdded, onEffectRemoved, onEffectUpdated, onEnterCombat, onItemPickup, onLeaveCombat, onSoulSpeedBlock, outOfWorld, playBlockFallSound, playEquipSound, push, pushEntities, randomTeleport, releaseUsingItem, removeAllEffects, removeEffect, removeEffectNoUpdate, removeEffectParticles, removeSoulSpeed, resetForwardDirectionOfRelativePortalPosition, rideableUnderWater, rideTick, setAbsorptionAmount, setArrowCount, setHealth, setItemInHand, setJumping, setLastHurtByMob, setLastHurtByPlayer, setLastHurtMob, setLivingEntityFlag, setNoActionTime, setOnGround, setRecordPlayingNearby, setSleepingPos, setSprinting, setStingerCount, setYBodyRot, setYHeadRot, shouldRemoveSoulSpeed, shouldRiderFaceForward, shouldShowName, spawnSoulSpeedParticle, startAutoSpinAttack, startSleeping, startUsingItem, stopRiding, stopSleeping, stopUsingItem, swing, swing, take, tickDeath, tickEffects, travel, triggerItemUseEffects, tryAddSoulSpeed, updateEffectVisibility, updateInvisibilityStatus, updateSwingTime
-
Methods inherited from class net.minecraft.entity.Entity
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, changeDimension, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDirection, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMotionDirection, getName, getOnPos, getPacketCoordinates, getPassengers, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getStringUUID, getSwimHighSpeedSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getX, getX, getY, getY, getZ, getZ, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlliedTo, isAlliedTo, isAttackable, isColliding, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, killed, lavaHurt, lerpMotion, limitPistonMovement, load, makeFlySound, makeStuckInBlock, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, pick, playerTouch, playFlySound, playSound, playSwimSound, position, positionRider, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, remove, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setLevel, setLocationFromBoundingbox, setNoGravity, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSwimming, setUUID, setViewScale, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startSeenByPlayer, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
-
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
-
Methods inherited from interface net.minecraft.entity.ICrossbowUser
getProjectileShotVector, getTarget, performCrossbowAttack, shootCrossbowProjectile
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeEntity
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getDimensionsForge, getEntity, getEyeHeightForge, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
-
-
-
-
Field Detail
-
DATA_BABY_ID
private static final DataParameter<java.lang.Boolean> DATA_BABY_ID
-
DATA_IS_CHARGING_CROSSBOW
private static final DataParameter<java.lang.Boolean> DATA_IS_CHARGING_CROSSBOW
-
DATA_IS_DANCING
private static final DataParameter<java.lang.Boolean> DATA_IS_DANCING
-
SPEED_MODIFIER_BABY_UUID
private static final java.util.UUID SPEED_MODIFIER_BABY_UUID
-
SPEED_MODIFIER_BABY
private static final AttributeModifier SPEED_MODIFIER_BABY
-
inventory
private final Inventory inventory
-
cannotHunt
private boolean cannotHunt
-
SENSOR_TYPES
protected static final com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super PiglinEntity>>> SENSOR_TYPES
-
MEMORY_TYPES
protected static final com.google.common.collect.ImmutableList<MemoryModuleType<?>> MEMORY_TYPES
-
-
Constructor Detail
-
PiglinEntity
public PiglinEntity(EntityType<? extends AbstractPiglinEntity> p_i231570_1_, World p_i231570_2_)
-
-
Method Detail
-
addAdditionalSaveData
public void addAdditionalSaveData(CompoundNBT p_213281_1_)
- Overrides:
addAdditionalSaveData
in classAbstractPiglinEntity
-
readAdditionalSaveData
public void readAdditionalSaveData(CompoundNBT p_70037_1_)
- Overrides:
readAdditionalSaveData
in classAbstractPiglinEntity
-
dropCustomDeathLoot
protected void dropCustomDeathLoot(DamageSource p_213333_1_, int p_213333_2_, boolean p_213333_3_)
- Overrides:
dropCustomDeathLoot
in classMobEntity
-
canAddToInventory
protected boolean canAddToInventory(ItemStack p_234437_1_)
-
defineSynchedData
protected void defineSynchedData()
- Overrides:
defineSynchedData
in classAbstractPiglinEntity
-
onSyncedDataUpdated
public void onSyncedDataUpdated(DataParameter<?> p_184206_1_)
- Overrides:
onSyncedDataUpdated
in classLivingEntity
-
createAttributes
public static AttributeModifierMap.MutableAttribute createAttributes()
-
checkPiglinSpawnRules
public static boolean checkPiglinSpawnRules(EntityType<PiglinEntity> p_234418_0_, IWorld p_234418_1_, SpawnReason p_234418_2_, BlockPos p_234418_3_, java.util.Random p_234418_4_)
-
finalizeSpawn
@Nullable public ILivingEntityData finalizeSpawn(IServerWorld p_213386_1_, DifficultyInstance p_213386_2_, SpawnReason p_213386_3_, @Nullable ILivingEntityData p_213386_4_, @Nullable CompoundNBT p_213386_5_)
- Overrides:
finalizeSpawn
in classMobEntity
-
shouldDespawnInPeaceful
protected boolean shouldDespawnInPeaceful()
- Overrides:
shouldDespawnInPeaceful
in classMonsterEntity
-
removeWhenFarAway
public boolean removeWhenFarAway(double p_213397_1_)
- Overrides:
removeWhenFarAway
in classMobEntity
-
populateDefaultEquipmentSlots
protected void populateDefaultEquipmentSlots(DifficultyInstance p_180481_1_)
- Overrides:
populateDefaultEquipmentSlots
in classMobEntity
-
maybeWearArmor
private void maybeWearArmor(EquipmentSlotType p_234419_1_, ItemStack p_234419_2_)
-
brainProvider
protected Brain.BrainCodec<PiglinEntity> brainProvider()
- Overrides:
brainProvider
in classLivingEntity
-
makeBrain
protected Brain<?> makeBrain(com.mojang.serialization.Dynamic<?> p_213364_1_)
- Overrides:
makeBrain
in classLivingEntity
-
getBrain
public Brain<PiglinEntity> getBrain()
- Overrides:
getBrain
in classLivingEntity
-
mobInteract
public ActionResultType mobInteract(PlayerEntity p_230254_1_, Hand p_230254_2_)
- Overrides:
mobInteract
in classMobEntity
-
getStandingEyeHeight
protected float getStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_)
- Overrides:
getStandingEyeHeight
in classLivingEntity
-
getPassengersRidingOffset
public double getPassengersRidingOffset()
- Overrides:
getPassengersRidingOffset
in classEntity
-
isBaby
public boolean isBaby()
- Overrides:
isBaby
in classLivingEntity
-
setCannotHunt
private void setCannotHunt(boolean p_234443_1_)
-
canHunt
protected boolean canHunt()
- Specified by:
canHunt
in classAbstractPiglinEntity
-
customServerAiStep
protected void customServerAiStep()
- Overrides:
customServerAiStep
in classAbstractPiglinEntity
-
getExperienceReward
protected int getExperienceReward(PlayerEntity p_70693_1_)
- Overrides:
getExperienceReward
in classMobEntity
-
finishConversion
protected void finishConversion(ServerWorld p_234416_1_)
- Overrides:
finishConversion
in classAbstractPiglinEntity
-
createSpawnWeapon
private ItemStack createSpawnWeapon()
-
isChargingCrossbow
private boolean isChargingCrossbow()
-
setChargingCrossbow
public void setChargingCrossbow(boolean p_213671_1_)
- Specified by:
setChargingCrossbow
in interfaceICrossbowUser
-
onCrossbowAttackPerformed
public void onCrossbowAttackPerformed()
- Specified by:
onCrossbowAttackPerformed
in interfaceICrossbowUser
-
getArmPose
public PiglinAction getArmPose()
- Specified by:
getArmPose
in classAbstractPiglinEntity
-
isDancing
public boolean isDancing()
-
setDancing
public void setDancing(boolean p_234442_1_)
-
hurt
public boolean hurt(DamageSource p_70097_1_, float p_70097_2_)
- Overrides:
hurt
in classMonsterEntity
-
performRangedAttack
public void performRangedAttack(LivingEntity p_82196_1_, float p_82196_2_)
- Specified by:
performRangedAttack
in interfaceIRangedAttackMob
-
shootCrossbowProjectile
public void shootCrossbowProjectile(LivingEntity p_230284_1_, ItemStack p_230284_2_, ProjectileEntity p_230284_3_, float p_230284_4_)
- Specified by:
shootCrossbowProjectile
in interfaceICrossbowUser
-
canFireProjectileWeapon
public boolean canFireProjectileWeapon(ShootableItem p_230280_1_)
- Overrides:
canFireProjectileWeapon
in classMobEntity
-
holdInMainHand
protected void holdInMainHand(ItemStack p_234438_1_)
-
holdInOffHand
protected void holdInOffHand(ItemStack p_234439_1_)
-
wantsToPickUp
public boolean wantsToPickUp(ItemStack p_230293_1_)
- Overrides:
wantsToPickUp
in classMobEntity
-
canReplaceCurrentItem
protected boolean canReplaceCurrentItem(ItemStack p_234440_1_)
-
canReplaceCurrentItem
protected boolean canReplaceCurrentItem(ItemStack p_208003_1_, ItemStack p_208003_2_)
- Overrides:
canReplaceCurrentItem
in classMobEntity
-
pickUpItem
protected void pickUpItem(ItemEntity p_175445_1_)
- Overrides:
pickUpItem
in classMobEntity
-
startRiding
public boolean startRiding(Entity p_184205_1_, boolean p_184205_2_)
- Overrides:
startRiding
in classMobEntity
-
getAmbientSound
protected SoundEvent getAmbientSound()
- Overrides:
getAmbientSound
in classMobEntity
-
getHurtSound
protected SoundEvent getHurtSound(DamageSource p_184601_1_)
- Overrides:
getHurtSound
in classMonsterEntity
-
getDeathSound
protected SoundEvent getDeathSound()
- Overrides:
getDeathSound
in classMonsterEntity
-
playStepSound
protected void playStepSound(BlockPos p_180429_1_, BlockState p_180429_2_)
- Overrides:
playStepSound
in classEntity
-
playSound
protected void playSound(SoundEvent p_241417_1_)
-
playConvertedSound
protected void playConvertedSound()
- Specified by:
playConvertedSound
in classAbstractPiglinEntity
-
-