Class MonsterEntity

Direct Known Subclasses:
AbstractSkeletonEntity, BasePiglinEntity, BlazeEntity, CreeperEntity, EndermanEntity, GiantEntity, GuardianEntity, RaidParticipantEntity, SpiderEntity, VexEntity, WardenEntity, WitherEntity, ZoglinEntity, ZombieEntity

public class MonsterEntity extends CreatureEntity
  • Constructor Details

    • MonsterEntity

      public MonsterEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
  • Method Details

    • isEnemy

      protected boolean isEnemy()
      Description copied from class: MobEntity
      Returns if the entity is hostile. Used to determine if it can be leashed.
      Overrides:
      isEnemy in class MobEntity