Uses of Class
net.minecraft.world.entity.monster.piglin.Piglin
-
Uses of Piglin in net.minecraft.world.entity
-
Uses of Piglin in net.minecraft.world.entity.monster.piglin
Modifier and TypeClassDescriptionclass
RememberIfHoglinWasKilled<E extends Piglin>
class
StartAdmiringItemIfSeen<E extends Piglin>
class
StartHuntingHoglin<E extends Piglin>
class
StopAdmiringIfItemTooFarAway<E extends Piglin>
class
StopAdmiringIfTiredOfTryingToReachItem<E extends Piglin>
class
StopHoldingItemIfNoLongerAdmiring<E extends Piglin>
Modifier and TypeFieldDescriptionprotected static com.google.common.collect.ImmutableList<SensorType<? extends Sensor<? super Piglin>>>
Piglin.SENSOR_TYPES
Modifier and TypeMethodDescriptionprivate static CopyMemoryWithExpiry<Piglin,LivingEntity>
PiglinAi.avoidZombified()
private static CopyMemoryWithExpiry<Piglin,LivingEntity>
PiglinAi.babyAvoidNemesis()
private static RunSometimes<Piglin>
PiglinAi.babySometimesRideBabyHoglin()
protected Brain.Provider<Piglin>
Piglin.brainProvider()
PiglinAi.createIdleLookBehaviors()
PiglinAi.createIdleMovementBehaviors()
Piglin.getBrain()
Modifier and TypeMethodDescriptionprotected static void
PiglinAi.broadcastDontKillAnyMoreHoglinsForAWhile(Piglin p_34978_)
private static void
PiglinAi.broadcastRetreat(Piglin p_34930_, LivingEntity p_34931_)
protected static boolean
protected static void
PiglinAi.cancelAdmiring(Piglin p_34928_)
protected boolean
StartHuntingHoglin.checkExtraStartConditions(ServerLevel p_35164_, Piglin p_35165_)
private static void
private static Optional<? extends LivingEntity>
PiglinAi.findNearestValidAttackTarget(Piglin p_35001_)
static Optional<LivingEntity>
PiglinAi.getAvoidTarget(Piglin p_34987_)
PiglinAi.getBarterResponseItems(Piglin p_34997_)
private static Vec3
PiglinAi.getRandomNearbyPos(Piglin p_35017_)
private static SoundEvent
PiglinAi.getSoundForActivity(Piglin p_34855_, Activity p_34856_)
static Optional<SoundEvent>
PiglinAi.getSoundForCurrentActivity(Piglin p_34948_)
private static List<AbstractPiglin>
PiglinAi.getVisibleAdultPiglins(Piglin p_35005_)
protected static boolean
PiglinAi.hasAnyoneNearbyHuntedRecently(Piglin p_34966_)
private static boolean
PiglinAi.hasEatenRecently(Piglin p_35019_)
private static boolean
PiglinAi.hoglinsOutnumberPiglins(Piglin p_35013_)
private static void
PiglinAi.holdInOffhand(Piglin p_34933_, ItemStack p_34934_)
private static void
PiglinAi.initFightActivity(Piglin p_34904_, Brain<Piglin> p_34905_)
protected static void
PiglinAi.initMemories(Piglin p_34833_)
private static boolean
PiglinAi.isAdmiringDisabled(Piglin p_35025_)
private static boolean
PiglinAi.isAdmiringItem(Piglin p_35021_)
private static boolean
PiglinAi.isBabyRidingBaby(Piglin p_34993_)
private static boolean
PiglinAi.isHoldingItemInOffHand(Piglin p_35027_)
private static boolean
PiglinAi.isNearAvoidTarget(Piglin p_35003_)
private static boolean
PiglinAi.isNearestValidAttackTarget(Piglin p_34901_, LivingEntity p_34902_)
private static boolean
PiglinAi.isNearRepellent(Piglin p_35023_)
private static boolean
PiglinAi.isNearZombified(Piglin p_34999_)
private static boolean
PiglinAi.isNotHoldingLovedItemInOffHand(Piglin p_35029_)
protected static Brain<?>
static InteractionResult
PiglinAi.mobInteract(Piglin p_34847_, Player p_34848_, InteractionHand p_34849_)
protected static void
PiglinAi.pickUpItem(Piglin p_34844_, ItemEntity p_34845_)
private static boolean
PiglinAi.piglinsEqualOrOutnumberHoglins(Piglin p_35011_)
private static void
PiglinAi.putInInventory(Piglin p_34953_, ItemStack p_34954_)
private static void
PiglinAi.retreatFromNearestTarget(Piglin p_34950_, LivingEntity p_34951_)
private static boolean
PiglinAi.seesPlayerHoldingWantedItem(Piglin p_149972_)
private static void
PiglinAi.setAvoidTargetAndDontHuntForAWhile(Piglin p_34968_, LivingEntity p_34969_)
protected static void
PiglinAi.stopHoldingOffHandItem(Piglin p_34868_, boolean p_34869_)
private static void
PiglinAi.stopWalking(Piglin p_35007_)
private static void
PiglinAi.throwItems(Piglin p_34861_, List<ItemStack> p_34862_)
private static void
PiglinAi.throwItemsTowardPlayer(Piglin p_34851_, Player p_34852_, List<ItemStack> p_34853_)
private static void
PiglinAi.throwItemsTowardPos(Piglin p_34864_, List<ItemStack> p_34865_, Vec3 p_34866_)
private static void
PiglinAi.throwItemsTowardRandomPos(Piglin p_34913_, List<ItemStack> p_34914_)
protected static void
PiglinAi.updateActivity(Piglin p_34899_)
protected static boolean
PiglinAi.wantsToPickup(Piglin p_34858_, ItemStack p_34859_)
private static boolean
PiglinAi.wantsToStopFleeing(Piglin p_35009_)
private static boolean
PiglinAi.wantsToStopRiding(Piglin p_34835_, Entity p_34836_)
protected static void
PiglinAi.wasHurtBy(Piglin p_34838_, LivingEntity p_34839_)
Modifier and TypeMethodDescriptionstatic boolean
Piglin.checkPiglinSpawnRules(EntityType<Piglin> p_34734_, LevelAccessor p_34735_, MobSpawnType p_34736_, BlockPos p_34737_, Random p_34738_)
private static void
PiglinAi.initAdmireItemActivity(Brain<Piglin> p_34941_)
private static void
PiglinAi.initCelebrateActivity(Brain<Piglin> p_34921_)
private static void
PiglinAi.initCoreActivity(Brain<Piglin> p_34821_)
private static void
PiglinAi.initFightActivity(Piglin p_34904_, Brain<Piglin> p_34905_)
private static void
PiglinAi.initIdleActivity(Brain<Piglin> p_34892_)
private static void
PiglinAi.initRetreatActivity(Brain<Piglin> p_34959_)
private static void
PiglinAi.initRideHoglinActivity(Brain<Piglin> p_34974_)
protected static Brain<?>