All Methods Static Methods Concrete Methods
Modifier and Type |
Method and Description |
private static boolean |
acceptsForBarter(Item item) |
private static void |
addAdmireItemActivities(Brain<PiglinEntity> brain) |
private static void |
addAvoidActivities(Brain<PiglinEntity> brain) |
private static void |
addCelebrateActivities(Brain<PiglinEntity> brain) |
private static void |
addCoreActivities(Brain<PiglinEntity> piglin) |
private static void |
addFightActivities(PiglinEntity piglin,
Brain<PiglinEntity> brain) |
private static void |
addIdleActivities(Brain<PiglinEntity> piglin) |
private static void |
addRideActivities(Brain<PiglinEntity> brain) |
protected static void |
angerAtCloserTargets(AbstractPiglinEntity piglin,
LivingEntity target) |
private static void |
angerAtIfCloser(AbstractPiglinEntity piglin,
LivingEntity target) |
protected static void |
angerNearbyPiglins(AbstractPiglinEntity piglin) |
private static void |
barterItem(PiglinEntity piglin,
ItemStack stack) |
protected static void |
becomeAngryWith(AbstractPiglinEntity piglin,
LivingEntity target) |
private static void |
becomeAngryWithPlayer(AbstractPiglinEntity piglin,
LivingEntity player) |
protected static boolean |
canGather(PiglinEntity piglin,
ItemStack stack) |
private static boolean |
canRide(PiglinEntity piglin,
Entity ridden) |
private static boolean |
canRideHoglin(PiglinEntity piglin) |
private static boolean |
canWander(LivingEntity piglin) |
protected static void |
consumeOffHandItem(PiglinEntity piglin,
boolean bool) |
protected static Brain<?> |
create(PiglinEntity piglin,
Brain<PiglinEntity> brain) |
private static void |
doBarter(PiglinEntity piglin,
List<ItemStack> list) |
private static boolean |
doesNotHaveGoldInOffHand(PiglinEntity piglin) |
private static void |
drop(PiglinEntity piglin,
List<ItemStack> list,
Vec3d vec3d) |
private static void |
dropBarteredItem(PiglinEntity piglin,
List<ItemStack> list) |
private static void |
dropBarteredItem(PiglinEntity piglin,
PlayerEntity player,
List<ItemStack> list) |
private static Vec3d |
findGround(PiglinEntity piglin) |
private static Optional<LivingEntity> |
getAngryAt(AbstractPiglinEntity piglin) |
private static List<ItemStack> |
getBarteredItem(PiglinEntity piglin) |
private static ItemStack |
getItemFromStack(ItemEntity stack) |
private static List<AbstractPiglinEntity> |
getNearbyPiglins(AbstractPiglinEntity piglin) |
private static List<AbstractPiglinEntity> |
getNearbyVisiblePiglins(PiglinEntity piglin) |
static Optional<PlayerEntity> |
getNearestDetectedPlayer(AbstractPiglinEntity piglin) |
private static boolean |
getNearestZombifiedPiglin(PiglinEntity piglin) |
private static Optional<? extends LivingEntity> |
getPreferredTarget(PiglinEntity piglin) |
private static void |
groupRunAwayFrom(PiglinEntity piglin,
LivingEntity target) |
private static boolean |
hasAteRecently(PiglinEntity piglin) |
private static boolean |
hasBeenHitByPlayer(PiglinEntity piglin) |
private static boolean |
hasBeenHurt(LivingEntity piglin) |
protected static boolean |
hasIdleActivity(AbstractPiglinEntity piglin) |
private static boolean |
hasItemInOffHand(PiglinEntity piglin) |
private static boolean |
hasNoAdvantageAgainstHoglins(PiglinEntity piglin) |
private static boolean |
hasOutnumberedHoglins(PiglinEntity piglins) |
private static boolean |
hasPlayerHoldingWantedItemNearby(LivingEntity entity) |
private static boolean |
hasSoulFireNearby(PiglinEntity piglin) |
private static boolean |
hasTargetToAvoid(PiglinEntity piglin) |
protected static boolean |
haveHuntedHoglinsRecently(PiglinEntity piglin) |
private static boolean |
isAdmiringItem(PiglinEntity entity) |
private static boolean |
isFood(Item item) |
protected static boolean |
isGoldenItem(Item item) |
static boolean |
isGoldHoldingPlayer(LivingEntity target) |
private static boolean |
isHoldingCrossbow(LivingEntity piglin) |
private static boolean |
isPreferredAttackTarget(PiglinEntity piglin,
LivingEntity target) |
protected static boolean |
isWillingToTrade(PiglinEntity piglin,
ItemStack nearbyItems) |
static boolean |
isZombified(EntityType entityType) |
protected static void |
loot(PiglinEntity piglin,
ItemEntity drop) |
private static GoToRememberedPositionTask<BlockPos> |
makeGoToSoulFireTask() |
private static MemoryTransferTask<PiglinEntity,LivingEntity> |
makeGoToZombifiedPiglinTask() |
private static RandomTask<PiglinEntity> |
makeRandomFollowTask() |
private static RandomTask<PiglinEntity> |
makeRandomWanderTask() |
private static TimeLimitedTask<PiglinEntity> |
makeRememberRideableHoglinTask() |
private static boolean |
method_29276(LivingEntity livingEntity,
LivingEntity livingEntity2) |
static Optional<LivingEntity> |
method_29536(PiglinEntity piglinEntity) |
private static SoundEvent |
method_30087(PiglinEntity piglin,
Activity activity) |
private static MemoryTransferTask<PiglinEntity,LivingEntity> |
method_30090() |
static Optional<SoundEvent> |
method_30091(PiglinEntity piglin) |
protected static void |
onAttacked(PiglinEntity piglin,
LivingEntity attacker) |
static void |
onGuardedBlockInteracted(PlayerEntity player,
boolean blockOpen) |
protected static void |
pickupItemWithOffHand(PiglinEntity piglin) |
static ActionResult |
playerInteract(PiglinEntity piglin,
PlayerEntity player,
Hand hand) |
protected static void |
rememberGroupHunting(PiglinEntity piglin) |
protected static void |
rememberHunting(AbstractPiglinEntity piglin) |
private static void |
runAwayFrom(PiglinEntity piglin,
LivingEntity target) |
private static void |
runAwayFromClosestTarget(PiglinEntity piglin,
LivingEntity target) |
private static void |
setAdmiringItem(LivingEntity entity) |
private static void |
setEatenRecently(PiglinEntity piglin) |
protected static void |
setHuntedRecently(PiglinEntity piglin) |
private static boolean |
shouldAttack(LivingEntity target) |
private static boolean |
shouldRunAwayFromHoglins(PiglinEntity piglin) |
private static void |
stopWalking(PiglinEntity piglin) |
private static void |
swapItemWithOffHand(PiglinEntity piglin,
ItemStack stack) |
protected static void |
tickActivities(PiglinEntity piglin) |
protected static void |
tryRevenge(AbstractPiglinEntity abstractPiglinEntity,
LivingEntity livingEntity) |
static boolean |
wearsGoldArmor(LivingEntity entity) |