Class PatrolEntity

All Implemented Interfaces:
EntityLike, Monster, CommandOutput, Nameable
Direct Known Subclasses:
RaiderEntity

public abstract class PatrolEntity
extends HostileEntity
Mappings:
Namespace Name
official bfg
intermediary net/minecraft/class_3732
named net/minecraft/entity/mob/PatrolEntity
  • Field Details

    • patrolTarget

      private BlockPos patrolTarget
      Mappings:
      Namespace Name Mixin selector
      official b Lbfg;b:Lfx;
      intermediary field_16478 Lnet/minecraft/class_3732;field_16478:Lnet/minecraft/class_2338;
      named patrolTarget Lnet/minecraft/entity/mob/PatrolEntity;patrolTarget:Lnet/minecraft/util/math/BlockPos;
    • patrolLeader

      private boolean patrolLeader
      Mappings:
      Namespace Name Mixin selector
      official c Lbfg;c:Z
      intermediary field_16479 Lnet/minecraft/class_3732;field_16479:Z
      named patrolLeader Lnet/minecraft/entity/mob/PatrolEntity;patrolLeader:Z
    • patrolling

      private boolean patrolling
      Mappings:
      Namespace Name Mixin selector
      official d Lbfg;d:Z
      intermediary field_16477 Lnet/minecraft/class_3732;field_16477:Z
      named patrolling Lnet/minecraft/entity/mob/PatrolEntity;patrolling:Z
  • Constructor Details

    • PatrolEntity

      protected PatrolEntity​(EntityType<? extends PatrolEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laqv;<init>(Laqz;Lbtv;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
  • Method Details

    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official u Larj;u()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
    • writeCustomDataToTag

      public void writeCustomDataToTag​(CompoundTag tag)
      Overrides:
      writeCustomDataToTag in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official b Laqv;b(Lmq;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToTag Lnet/minecraft/entity/Entity;writeCustomDataToTag(Lnet/minecraft/nbt/CompoundTag;)V
    • readCustomDataFromTag

      public void readCustomDataFromTag​(CompoundTag tag)
      Overrides:
      readCustomDataFromTag in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Laqv;a(Lmq;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromTag Lnet/minecraft/entity/Entity;readCustomDataFromTag(Lnet/minecraft/nbt/CompoundTag;)V
    • getHeightOffset

      public double getHeightOffset()
      Overrides:
      getHeightOffset in class Entity
      Mappings:
      Namespace Name Mixin selector
      official bg Laqv;bg()D
      intermediary method_5678 Lnet/minecraft/class_1297;method_5678()D
      named getHeightOffset Lnet/minecraft/entity/Entity;getHeightOffset()D
    • canLead

      public boolean canLead()
      Mappings:
      Namespace Name Mixin selector
      official fm Lbfg;fm()Z
      intermediary method_16485 Lnet/minecraft/class_3732;method_16485()Z
      named canLead Lnet/minecraft/entity/mob/PatrolEntity;canLead()Z
    • initialize

      @Nullable public EntityData initialize​(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable EntityData entityData, @Nullable CompoundTag entityTag)
      Overrides:
      initialize in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Larj;a(Lbuj;Lapo;Larl;Larz;Lmq;)Larz;
      intermediary method_5943 Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;Lnet/minecraft/class_2487;)Lnet/minecraft/class_1315;
      named initialize Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/entity/EntityData;
    • canSpawn

      public static boolean canSpawn​(EntityType<? extends PatrolEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official b Lbfg;b(Laqz;Lbtw;Larl;Lfx;Ljava/util/Random;)Z
      intermediary method_20739 Lnet/minecraft/class_3732;method_20739(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Ljava/util/Random;)Z
      named canSpawn Lnet/minecraft/entity/mob/PatrolEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)Z
    • canImmediatelyDespawn

      public boolean canImmediatelyDespawn​(double distanceSquared)
      Overrides:
      canImmediatelyDespawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official h Larj;h(D)Z
      intermediary method_5974 Lnet/minecraft/class_1308;method_5974(D)Z
      named canImmediatelyDespawn Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
    • setPatrolTarget

      public void setPatrolTarget​(BlockPos targetPos)
      Mappings:
      Namespace Name Mixin selector
      official g Lbfg;g(Lfx;)V
      intermediary method_16216 Lnet/minecraft/class_3732;method_16216(Lnet/minecraft/class_2338;)V
      named setPatrolTarget Lnet/minecraft/entity/mob/PatrolEntity;setPatrolTarget(Lnet/minecraft/util/math/BlockPos;)V
    • getPatrolTarget

      public BlockPos getPatrolTarget()
      Returns the position this patrol entity is walking to.
      Mappings:
      Namespace Name Mixin selector
      official fn Lbfg;fn()Lfx;
      intermediary method_16215 Lnet/minecraft/class_3732;method_16215()Lnet/minecraft/class_2338;
      named getPatrolTarget Lnet/minecraft/entity/mob/PatrolEntity;getPatrolTarget()Lnet/minecraft/util/math/BlockPos;
    • hasPatrolTarget

      public boolean hasPatrolTarget()
      Mappings:
      Namespace Name Mixin selector
      official fo Lbfg;fo()Z
      intermediary method_16220 Lnet/minecraft/class_3732;method_16220()Z
      named hasPatrolTarget Lnet/minecraft/entity/mob/PatrolEntity;hasPatrolTarget()Z
    • setPatrolLeader

      public void setPatrolLeader​(boolean patrolLeader)
      Mappings:
      Namespace Name Mixin selector
      official u Lbfg;u(Z)V
      intermediary method_16217 Lnet/minecraft/class_3732;method_16217(Z)V
      named setPatrolLeader Lnet/minecraft/entity/mob/PatrolEntity;setPatrolLeader(Z)V
    • isPatrolLeader

      public boolean isPatrolLeader()
      Mappings:
      Namespace Name Mixin selector
      official fr Lbfg;fr()Z
      intermediary method_16219 Lnet/minecraft/class_3732;method_16219()Z
      named isPatrolLeader Lnet/minecraft/entity/mob/PatrolEntity;isPatrolLeader()Z
    • hasNoRaid

      public boolean hasNoRaid()
      Mappings:
      Namespace Name Mixin selector
      official fs Lbfg;fs()Z
      intermediary method_16472 Lnet/minecraft/class_3732;method_16472()Z
      named hasNoRaid Lnet/minecraft/entity/mob/PatrolEntity;hasNoRaid()Z
    • setRandomPatrolTarget

      public void setRandomPatrolTarget()
      Mappings:
      Namespace Name Mixin selector
      official ft Lbfg;ft()V
      intermediary method_16218 Lnet/minecraft/class_3732;method_16218()V
      named setRandomPatrolTarget Lnet/minecraft/entity/mob/PatrolEntity;setRandomPatrolTarget()V
    • isRaidCenterSet

      protected boolean isRaidCenterSet()
      Mappings:
      Namespace Name Mixin selector
      official fu Lbfg;fu()Z
      intermediary method_16915 Lnet/minecraft/class_3732;method_16915()Z
      named isRaidCenterSet Lnet/minecraft/entity/mob/PatrolEntity;isRaidCenterSet()Z
    • setPatrolling

      protected void setPatrolling​(boolean patrolling)
      Mappings:
      Namespace Name Mixin selector
      official v Lbfg;v(Z)V
      intermediary method_22332 Lnet/minecraft/class_3732;method_22332(Z)V
      named setPatrolling Lnet/minecraft/entity/mob/PatrolEntity;setPatrolling(Z)V