Uses of Class
net.minecraft.entity.mob.PiglinEntity
Package
Description
-
Uses of PiglinEntity in net.minecraft.entity
-
Uses of PiglinEntity in net.minecraft.entity.ai.brain.task
Modifier and TypeMethodDescriptionstatic SingleTickTask<PiglinEntity>
HuntHoglinTask.create()
static Task<PiglinEntity>
RemoveOffHandItemTask.create()
-
Uses of PiglinEntity in net.minecraft.entity.mob
Modifier and TypeFieldDescriptionprotected static final ImmutableList<SensorType<? extends Sensor<? super PiglinEntity>>>
PiglinEntity.SENSOR_TYPES
Modifier and TypeMethodDescriptionprotected Brain.Profile<PiglinEntity>
PiglinEntity.createBrainProfile()
PiglinEntity.getBrain()
private static Task<PiglinEntity>
PiglinBrain.goToNemesisTask()
private static Task<PiglinEntity>
PiglinBrain.makeGoToZombifiedPiglinTask()
private static RandomTask<PiglinEntity>
PiglinBrain.makeRandomWanderTask()
Modifier and TypeMethodDescriptionprivate static void
PiglinBrain.addFightActivities
(PiglinEntity piglin, Brain<PiglinEntity> brain) private static void
PiglinBrain.barterItem
(PiglinEntity piglin, ItemStack stack) protected static boolean
PiglinBrain.canGather
(PiglinEntity piglin, ItemStack stack) private static boolean
PiglinBrain.canRide
(PiglinEntity piglin, Entity ridden) private static boolean
PiglinBrain.canRideHoglin
(PiglinEntity piglin) protected static void
PiglinBrain.consumeOffHandItem
(PiglinEntity piglin, boolean barter) protected static Brain<?>
PiglinBrain.create
(PiglinEntity piglin, Brain<PiglinEntity> brain) private static void
PiglinBrain.doBarter
(PiglinEntity piglin, List<ItemStack> items) private static boolean
PiglinBrain.doesNotHaveGoldInOffHand
(PiglinEntity piglin) private static void
PiglinBrain.drop
(PiglinEntity piglin, List<ItemStack> items, Vec3d pos) private static void
PiglinBrain.dropBarteredItem
(PiglinEntity piglin, List<ItemStack> items) private static void
PiglinBrain.dropBarteredItem
(PiglinEntity piglin, PlayerEntity player, List<ItemStack> items) private static Vec3d
PiglinBrain.findGround
(PiglinEntity piglin) static Optional<LivingEntity>
PiglinBrain.getAvoiding
(PiglinEntity piglin) PiglinBrain.getBarteredItem
(PiglinEntity piglin) static Optional<SoundEvent>
PiglinBrain.getCurrentActivitySound
(PiglinEntity piglin) protected static List<AbstractPiglinEntity>
PiglinBrain.getNearbyVisiblePiglins
(PiglinEntity piglin) private static boolean
PiglinBrain.getNearestZombifiedPiglin
(PiglinEntity piglin) private static Optional<? extends LivingEntity>
PiglinBrain.getPreferredTarget
(PiglinEntity piglin) private static SoundEvent
PiglinBrain.getSound
(PiglinEntity piglin, Activity activity) private static void
PiglinBrain.groupRunAwayFrom
(PiglinEntity piglin, LivingEntity target) private static boolean
PiglinBrain.hasAteRecently
(PiglinEntity piglin) private static boolean
PiglinBrain.hasBeenHitByPlayer
(PiglinEntity piglin) private static boolean
PiglinBrain.hasItemInOffHand
(PiglinEntity piglin) private static boolean
PiglinBrain.hasNoAdvantageAgainstHoglins
(PiglinEntity piglin) private static boolean
PiglinBrain.hasOutnumberedHoglins
(PiglinEntity piglins) private static boolean
PiglinBrain.hasSoulFireNearby
(PiglinEntity piglin) private static boolean
PiglinBrain.hasTargetToAvoid
(PiglinEntity piglin) private static boolean
PiglinBrain.isAdmiringItem
(PiglinEntity entity) private static boolean
PiglinBrain.isPreferredAttackTarget
(PiglinEntity piglin, LivingEntity target) protected static boolean
PiglinBrain.isWillingToTrade
(PiglinEntity piglin, ItemStack nearbyItems) protected static void
PiglinBrain.loot
(PiglinEntity piglin, ItemEntity drop) protected static void
PiglinBrain.onAttacked
(PiglinEntity piglin, LivingEntity attacker) protected static void
PiglinBrain.pickupItemWithOffHand
(PiglinEntity piglin) static ActionResult
PiglinBrain.playerInteract
(PiglinEntity piglin, PlayerEntity player, Hand hand) private static void
PiglinBrain.runAwayFrom
(PiglinEntity piglin, LivingEntity target) private static void
PiglinBrain.runAwayFromClosestTarget
(PiglinEntity piglin, LivingEntity target) private static void
PiglinBrain.setEatenRecently
(PiglinEntity piglin) protected static void
PiglinBrain.setHuntedRecently
(PiglinEntity piglin, Random random) private static boolean
PiglinBrain.shouldRunAwayFromHoglins
(PiglinEntity piglin) private static void
PiglinBrain.stopWalking
(PiglinEntity piglin) private static void
PiglinBrain.swapItemWithOffHand
(PiglinEntity piglin, ItemStack stack) protected static void
PiglinBrain.tickActivities
(PiglinEntity piglin) Modifier and TypeMethodDescriptionprivate static void
PiglinBrain.addAdmireItemActivities
(Brain<PiglinEntity> brain) private static void
PiglinBrain.addAvoidActivities
(Brain<PiglinEntity> brain) private static void
PiglinBrain.addCelebrateActivities
(Brain<PiglinEntity> brain) private static void
PiglinBrain.addCoreActivities
(Brain<PiglinEntity> piglin) private static void
PiglinBrain.addFightActivities
(PiglinEntity piglin, Brain<PiglinEntity> brain) private static void
PiglinBrain.addIdleActivities
(Brain<PiglinEntity> piglin) private static void
PiglinBrain.addRideActivities
(Brain<PiglinEntity> brain) static boolean
PiglinEntity.canSpawn
(EntityType<PiglinEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) protected static Brain<?>
PiglinBrain.create
(PiglinEntity piglin, Brain<PiglinEntity> brain)