Package net.minecraft.entity.mob
Class HoglinBrain
java.lang.Object
net.minecraft.entity.mob.HoglinBrain
- Mappings:
Namespace Name official bmb
intermediary net/minecraft/class_4835
named net/minecraft/entity/mob/HoglinBrain
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final UniformIntProvider
static final int
static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final float
private static final float
private static final float
private static final float
private static final float
private static final UniformIntProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addAvoidTasks
(Brain<HoglinEntity> brain) private static void
addCoreTasks
(Brain<HoglinEntity> brain) private static void
addFightTasks
(Brain<HoglinEntity> brain) private static void
addIdleTasks
(Brain<HoglinEntity> brain) private static void
askAdultsForHelp
(HoglinEntity hoglin, LivingEntity target) private static void
askAdultsToAvoid
(HoglinEntity hoglin, LivingEntity target) private static void
avoid
(HoglinEntity hoglin, LivingEntity target) private static void
avoidEnemy
(HoglinEntity hoglin, LivingEntity target) protected static Brain<?>
create
(Brain<HoglinEntity> brain) private static List<HoglinEntity>
getAdultHoglinsAround
(HoglinEntity hoglin) private static Optional<? extends LivingEntity>
static Optional<SoundEvent>
getSoundEvent
(HoglinEntity hoglin) private static SoundEvent
getSoundEvent
(HoglinEntity hoglin, Activity activity) private static boolean
hasBreedTarget
(HoglinEntity hoglin) private static boolean
hasMoreHoglinsAround
(HoglinEntity hoglin) private static boolean
hasNearestRepellent
(HoglinEntity hoglin) private static boolean
isLoneAdult
(HoglinEntity hoglin) protected static boolean
isNearPlayer
(HoglinEntity hoglin) (package private) static boolean
isWarpedFungusAround
(HoglinEntity hoglin, BlockPos pos) private static RandomTask<HoglinEntity>
protected static void
onAttacked
(HoglinEntity hoglin, LivingEntity attacker) protected static void
onAttacking
(HoglinEntity hoglin, LivingEntity target) protected static void
refreshActivities
(HoglinEntity hoglin) private static void
setAttackTarget
(HoglinEntity hoglin, LivingEntity target) private static void
setAttackTargetIfCloser
(HoglinEntity hoglin, LivingEntity targetCandidate) private static void
targetEnemy
(HoglinEntity hoglin, LivingEntity target)
-
Field Details
-
field_30533
public static final int field_30533- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbmb;a:I
intermediary field_30533
Lnet/minecraft/class_4835;field_30533:I
named field_30533
Lnet/minecraft/entity/mob/HoglinBrain;field_30533:I
-
field_30534
public static final int field_30534- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lbmb;b:I
intermediary field_30534
Lnet/minecraft/class_4835;field_30534:I
named field_30534
Lnet/minecraft/entity/mob/HoglinBrain;field_30534:I
-
AVOID_MEMORY_DURATION
- Mappings:
Namespace Name Mixin selector official c
Lbmb;c:Laut;
intermediary field_22369
Lnet/minecraft/class_4835;field_22369:Lnet/minecraft/class_6019;
named AVOID_MEMORY_DURATION
Lnet/minecraft/entity/mob/HoglinBrain;AVOID_MEMORY_DURATION:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
-
field_30535
private static final int field_30535- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lbmb;d:I
intermediary field_30535
Lnet/minecraft/class_4835;field_30535:I
named field_30535
Lnet/minecraft/entity/mob/HoglinBrain;field_30535:I
-
field_30536
private static final int field_30536- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lbmb;e:I
intermediary field_30536
Lnet/minecraft/class_4835;field_30536:I
named field_30536
Lnet/minecraft/entity/mob/HoglinBrain;field_30536:I
-
field_30537
private static final int field_30537- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lbmb;f:I
intermediary field_30537
Lnet/minecraft/class_4835;field_30537:I
named field_30537
Lnet/minecraft/entity/mob/HoglinBrain;field_30537:I
-
field_30538
private static final int field_30538- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lbmb;g:I
intermediary field_30538
Lnet/minecraft/class_4835;field_30538:I
named field_30538
Lnet/minecraft/entity/mob/HoglinBrain;field_30538:I
-
field_30539
private static final int field_30539- See Also:
- Mappings:
Namespace Name Mixin selector official h
Lbmb;h:I
intermediary field_30539
Lnet/minecraft/class_4835;field_30539:I
named field_30539
Lnet/minecraft/entity/mob/HoglinBrain;field_30539:I
-
field_30540
private static final int field_30540- See Also:
- Mappings:
Namespace Name Mixin selector official i
Lbmb;i:I
intermediary field_30540
Lnet/minecraft/class_4835;field_30540:I
named field_30540
Lnet/minecraft/entity/mob/HoglinBrain;field_30540:I
-
WALK_TOWARD_CLOSEST_ADULT_RANGE
- Mappings:
Namespace Name Mixin selector official j
Lbmb;j:Laut;
intermediary field_25383
Lnet/minecraft/class_4835;field_25383:Lnet/minecraft/class_6019;
named WALK_TOWARD_CLOSEST_ADULT_RANGE
Lnet/minecraft/entity/mob/HoglinBrain;WALK_TOWARD_CLOSEST_ADULT_RANGE:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
-
field_30541
private static final float field_30541- See Also:
- Mappings:
Namespace Name Mixin selector official k
Lbmb;k:F
intermediary field_30541
Lnet/minecraft/class_4835;field_30541:F
named field_30541
Lnet/minecraft/entity/mob/HoglinBrain;field_30541:F
-
field_30542
private static final float field_30542- See Also:
- Mappings:
Namespace Name Mixin selector official l
Lbmb;l:F
intermediary field_30542
Lnet/minecraft/class_4835;field_30542:F
named field_30542
Lnet/minecraft/entity/mob/HoglinBrain;field_30542:F
-
field_30543
private static final float field_30543- See Also:
- Mappings:
Namespace Name Mixin selector official m
Lbmb;m:F
intermediary field_30543
Lnet/minecraft/class_4835;field_30543:F
named field_30543
Lnet/minecraft/entity/mob/HoglinBrain;field_30543:F
-
field_30544
private static final float field_30544- See Also:
- Mappings:
Namespace Name Mixin selector official n
Lbmb;n:F
intermediary field_30544
Lnet/minecraft/class_4835;field_30544:F
named field_30544
Lnet/minecraft/entity/mob/HoglinBrain;field_30544:F
-
field_30545
private static final float field_30545- See Also:
- Mappings:
Namespace Name Mixin selector official o
Lbmb;o:F
intermediary field_30545
Lnet/minecraft/class_4835;field_30545:F
named field_30545
Lnet/minecraft/entity/mob/HoglinBrain;field_30545:F
-
-
Constructor Details
-
HoglinBrain
public HoglinBrain()
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official a
Lbmb;a(Laxv;)Laxv;
intermediary method_24668
Lnet/minecraft/class_4835;method_24668(Lnet/minecraft/class_4095;)Lnet/minecraft/class_4095;
named create
Lnet/minecraft/entity/mob/HoglinBrain;create(Lnet/minecraft/entity/ai/brain/Brain;)Lnet/minecraft/entity/ai/brain/Brain;
-
addCoreTasks
- Mappings:
Namespace Name Mixin selector official b
Lbmb;b(Laxv;)V
intermediary method_24666
Lnet/minecraft/class_4835;method_24666(Lnet/minecraft/class_4095;)V
named addCoreTasks
Lnet/minecraft/entity/mob/HoglinBrain;addCoreTasks(Lnet/minecraft/entity/ai/brain/Brain;)V
-
addIdleTasks
- Mappings:
Namespace Name Mixin selector official c
Lbmb;c(Laxv;)V
intermediary method_24673
Lnet/minecraft/class_4835;method_24673(Lnet/minecraft/class_4095;)V
named addIdleTasks
Lnet/minecraft/entity/mob/HoglinBrain;addIdleTasks(Lnet/minecraft/entity/ai/brain/Brain;)V
-
addFightTasks
- Mappings:
Namespace Name Mixin selector official d
Lbmb;d(Laxv;)V
intermediary method_24676
Lnet/minecraft/class_4835;method_24676(Lnet/minecraft/class_4095;)V
named addFightTasks
Lnet/minecraft/entity/mob/HoglinBrain;addFightTasks(Lnet/minecraft/entity/ai/brain/Brain;)V
-
addAvoidTasks
- Mappings:
Namespace Name Mixin selector official e
Lbmb;e(Laxv;)V
intermediary method_24679
Lnet/minecraft/class_4835;method_24679(Lnet/minecraft/class_4095;)V
named addAvoidTasks
Lnet/minecraft/entity/mob/HoglinBrain;addAvoidTasks(Lnet/minecraft/entity/ai/brain/Brain;)V
-
makeRandomWalkTask
- Mappings:
Namespace Name Mixin selector official a
Lbmb;a()Lbag;
intermediary method_24662
Lnet/minecraft/class_4835;method_24662()Lnet/minecraft/class_4118;
named makeRandomWalkTask
Lnet/minecraft/entity/mob/HoglinBrain;makeRandomWalkTask()Lnet/minecraft/entity/ai/brain/task/RandomTask;
-
refreshActivities
- Mappings:
Namespace Name Mixin selector official a
Lbmb;a(Lbma;)V
intermediary method_24664
Lnet/minecraft/class_4835;method_24664(Lnet/minecraft/class_4760;)V
named refreshActivities
Lnet/minecraft/entity/mob/HoglinBrain;refreshActivities(Lnet/minecraft/entity/mob/HoglinEntity;)V
-
onAttacking
- Mappings:
Namespace Name Mixin selector official a
Lbmb;a(Lbma;Laxa;)V
intermediary method_24665
Lnet/minecraft/class_4835;method_24665(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
named onAttacking
Lnet/minecraft/entity/mob/HoglinBrain;onAttacking(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
-
askAdultsToAvoid
- Mappings:
Namespace Name Mixin selector official c
Lbmb;c(Lbma;Laxa;)V
intermediary method_24675
Lnet/minecraft/class_4835;method_24675(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
named askAdultsToAvoid
Lnet/minecraft/entity/mob/HoglinBrain;askAdultsToAvoid(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
-
avoidEnemy
- Mappings:
Namespace Name Mixin selector official d
Lbmb;d(Lbma;Laxa;)V
intermediary method_24678
Lnet/minecraft/class_4835;method_24678(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
named avoidEnemy
Lnet/minecraft/entity/mob/HoglinBrain;avoidEnemy(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
-
avoid
- Mappings:
Namespace Name Mixin selector official e
Lbmb;e(Lbma;Laxa;)V
intermediary method_24681
Lnet/minecraft/class_4835;method_24681(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
named avoid
Lnet/minecraft/entity/mob/HoglinBrain;avoid(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
-
getNearestVisibleTargetablePlayer
private static Optional<? extends LivingEntity> getNearestVisibleTargetablePlayer(HoglinEntity hoglin) - Mappings:
Namespace Name Mixin selector official d
Lbmb;d(Lbma;)Ljava/util/Optional;
intermediary method_24684
Lnet/minecraft/class_4835;method_24684(Lnet/minecraft/class_4760;)Ljava/util/Optional;
named getNearestVisibleTargetablePlayer
Lnet/minecraft/entity/mob/HoglinBrain;getNearestVisibleTargetablePlayer(Lnet/minecraft/entity/mob/HoglinEntity;)Ljava/util/Optional;
-
isWarpedFungusAround
- Mappings:
Namespace Name Mixin selector official a
Lbmb;a(Lbma;Lgh;)Z
intermediary method_24669
Lnet/minecraft/class_4835;method_24669(Lnet/minecraft/class_4760;Lnet/minecraft/class_2338;)Z
named isWarpedFungusAround
Lnet/minecraft/entity/mob/HoglinBrain;isWarpedFungusAround(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/util/math/BlockPos;)Z
-
isLoneAdult
- Mappings:
Namespace Name Mixin selector official e
Lbmb;e(Lbma;)Z
intermediary method_25947
Lnet/minecraft/class_4835;method_25947(Lnet/minecraft/class_4760;)Z
named isLoneAdult
Lnet/minecraft/entity/mob/HoglinBrain;isLoneAdult(Lnet/minecraft/entity/mob/HoglinEntity;)Z
-
hasMoreHoglinsAround
- Mappings:
Namespace Name Mixin selector official f
Lbmb;f(Lbma;)Z
intermediary method_24686
Lnet/minecraft/class_4835;method_24686(Lnet/minecraft/class_4760;)Z
named hasMoreHoglinsAround
Lnet/minecraft/entity/mob/HoglinBrain;hasMoreHoglinsAround(Lnet/minecraft/entity/mob/HoglinEntity;)Z
-
onAttacked
- Mappings:
Namespace Name Mixin selector official b
Lbmb;b(Lbma;Laxa;)V
intermediary method_24672
Lnet/minecraft/class_4835;method_24672(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
named onAttacked
Lnet/minecraft/entity/mob/HoglinBrain;onAttacked(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
-
targetEnemy
- Mappings:
Namespace Name Mixin selector official f
Lbmb;f(Lbma;Laxa;)V
intermediary method_24683
Lnet/minecraft/class_4835;method_24683(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
named targetEnemy
Lnet/minecraft/entity/mob/HoglinBrain;targetEnemy(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
-
setAttackTarget
- Mappings:
Namespace Name Mixin selector official g
Lbmb;g(Lbma;Laxa;)V
intermediary method_24685
Lnet/minecraft/class_4835;method_24685(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
named setAttackTarget
Lnet/minecraft/entity/mob/HoglinBrain;setAttackTarget(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
-
askAdultsForHelp
- Mappings:
Namespace Name Mixin selector official h
Lbmb;h(Lbma;Laxa;)V
intermediary method_24687
Lnet/minecraft/class_4835;method_24687(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
named askAdultsForHelp
Lnet/minecraft/entity/mob/HoglinBrain;askAdultsForHelp(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
-
setAttackTargetIfCloser
- Mappings:
Namespace Name Mixin selector official i
Lbmb;i(Lbma;Laxa;)V
intermediary method_24689
Lnet/minecraft/class_4835;method_24689(Lnet/minecraft/class_4760;Lnet/minecraft/class_1309;)V
named setAttackTargetIfCloser
Lnet/minecraft/entity/mob/HoglinBrain;setAttackTargetIfCloser(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/LivingEntity;)V
-
getSoundEvent
- Mappings:
Namespace Name Mixin selector official b
Lbmb;b(Lbma;)Ljava/util/Optional;
intermediary method_30083
Lnet/minecraft/class_4835;method_30083(Lnet/minecraft/class_4760;)Ljava/util/Optional;
named getSoundEvent
Lnet/minecraft/entity/mob/HoglinBrain;getSoundEvent(Lnet/minecraft/entity/mob/HoglinEntity;)Ljava/util/Optional;
-
getSoundEvent
- Mappings:
Namespace Name Mixin selector official a
Lbmb;a(Lbma;Lbot;)Lago;
intermediary method_30082
Lnet/minecraft/class_4835;method_30082(Lnet/minecraft/class_4760;Lnet/minecraft/class_4168;)Lnet/minecraft/class_3414;
named getSoundEvent
Lnet/minecraft/entity/mob/HoglinBrain;getSoundEvent(Lnet/minecraft/entity/mob/HoglinEntity;Lnet/minecraft/entity/ai/brain/Activity;)Lnet/minecraft/sound/SoundEvent;
-
getAdultHoglinsAround
- Mappings:
Namespace Name Mixin selector official g
Lbmb;g(Lbma;)Ljava/util/List;
intermediary method_24690
Lnet/minecraft/class_4835;method_24690(Lnet/minecraft/class_4760;)Ljava/util/List;
named getAdultHoglinsAround
Lnet/minecraft/entity/mob/HoglinBrain;getAdultHoglinsAround(Lnet/minecraft/entity/mob/HoglinEntity;)Ljava/util/List;
-
hasNearestRepellent
- Mappings:
Namespace Name Mixin selector official h
Lbmb;h(Lbma;)Z
intermediary method_30085
Lnet/minecraft/class_4835;method_30085(Lnet/minecraft/class_4760;)Z
named hasNearestRepellent
Lnet/minecraft/entity/mob/HoglinBrain;hasNearestRepellent(Lnet/minecraft/entity/mob/HoglinEntity;)Z
-
hasBreedTarget
- Mappings:
Namespace Name Mixin selector official i
Lbmb;i(Lbma;)Z
intermediary method_24691
Lnet/minecraft/class_4835;method_24691(Lnet/minecraft/class_4760;)Z
named hasBreedTarget
Lnet/minecraft/entity/mob/HoglinBrain;hasBreedTarget(Lnet/minecraft/entity/mob/HoglinEntity;)Z
-
isNearPlayer
- Mappings:
Namespace Name Mixin selector official c
Lbmb;c(Lbma;)Z
intermediary method_24677
Lnet/minecraft/class_4835;method_24677(Lnet/minecraft/class_4760;)Z
named isNearPlayer
Lnet/minecraft/entity/mob/HoglinBrain;isNearPlayer(Lnet/minecraft/entity/mob/HoglinEntity;)Z
-