Enum Class Entity.RemovalReason

java.lang.Object
java.lang.Enum<Entity.RemovalReason>
net.minecraft.entity.Entity.RemovalReason
All Implemented Interfaces:
Serializable, Comparable<Entity.RemovalReason>, Constable
Enclosing class:
Entity

public static enum Entity.RemovalReason extends Enum<Entity.RemovalReason>
Mappings:
Namespace Name
official atf$c
intermediary net/minecraft/class_1297$class_5529
named net/minecraft/entity/Entity$RemovalReason
  • Enum Constant Details

    • KILLED

      public static final Entity.RemovalReason KILLED
      The entity is killed.
      Mappings:
      Namespace Name Mixin selector
      official a Latf$c;a:Latf$c;
      intermediary field_26998 Lnet/minecraft/class_1297$class_5529;field_26998:Lnet/minecraft/class_1297$class_5529;
      named KILLED Lnet/minecraft/entity/Entity$RemovalReason;KILLED:Lnet/minecraft/entity/Entity$RemovalReason;
    • DISCARDED

      public static final Entity.RemovalReason DISCARDED
      Mappings:
      Namespace Name Mixin selector
      official b Latf$c;b:Latf$c;
      intermediary field_26999 Lnet/minecraft/class_1297$class_5529;field_26999:Lnet/minecraft/class_1297$class_5529;
      named DISCARDED Lnet/minecraft/entity/Entity$RemovalReason;DISCARDED:Lnet/minecraft/entity/Entity$RemovalReason;
    • UNLOADED_TO_CHUNK

      public static final Entity.RemovalReason UNLOADED_TO_CHUNK
      The entity is unloaded to chunk.

      The entity should be saved.

      Mappings:
      Namespace Name Mixin selector
      official c Latf$c;c:Latf$c;
      intermediary field_27000 Lnet/minecraft/class_1297$class_5529;field_27000:Lnet/minecraft/class_1297$class_5529;
      named UNLOADED_TO_CHUNK Lnet/minecraft/entity/Entity$RemovalReason;UNLOADED_TO_CHUNK:Lnet/minecraft/entity/Entity$RemovalReason;
    • UNLOADED_WITH_PLAYER

      public static final Entity.RemovalReason UNLOADED_WITH_PLAYER
      Mappings:
      Namespace Name Mixin selector
      official d Latf$c;d:Latf$c;
      intermediary field_27001 Lnet/minecraft/class_1297$class_5529;field_27001:Lnet/minecraft/class_1297$class_5529;
      named UNLOADED_WITH_PLAYER Lnet/minecraft/entity/Entity$RemovalReason;UNLOADED_WITH_PLAYER:Lnet/minecraft/entity/Entity$RemovalReason;
    • CHANGED_DIMENSION

      public static final Entity.RemovalReason CHANGED_DIMENSION
      The entity changed dimension.
      Mappings:
      Namespace Name Mixin selector
      official e Latf$c;e:Latf$c;
      intermediary field_27002 Lnet/minecraft/class_1297$class_5529;field_27002:Lnet/minecraft/class_1297$class_5529;
      named CHANGED_DIMENSION Lnet/minecraft/entity/Entity$RemovalReason;CHANGED_DIMENSION:Lnet/minecraft/entity/Entity$RemovalReason;
  • Field Details

    • destroy

      private final boolean destroy
      Mappings:
      Namespace Name Mixin selector
      official f Latf$c;f:Z
      intermediary field_27003 Lnet/minecraft/class_1297$class_5529;field_27003:Z
      named destroy Lnet/minecraft/entity/Entity$RemovalReason;destroy:Z
    • save

      private final boolean save
      Mappings:
      Namespace Name Mixin selector
      official g Latf$c;g:Z
      intermediary field_27004 Lnet/minecraft/class_1297$class_5529;field_27004:Z
      named save Lnet/minecraft/entity/Entity$RemovalReason;save:Z
  • Constructor Details

    • RemovalReason

      private RemovalReason(boolean destroy, boolean save)
      Mappings:
      Namespace Name Mixin selector
      official <init> Latf$c;<init>(Ljava/lang/String;IZZ)V
      intermediary <init> Lnet/minecraft/class_1297$class_5529;<init>(Ljava/lang/String;IZZ)V
      named <init> Lnet/minecraft/entity/Entity$RemovalReason;<init>(Ljava/lang/String;IZZ)V
  • Method Details

    • values

      public static Entity.RemovalReason[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Entity.RemovalReason valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • shouldDestroy

      public boolean shouldDestroy()
      Returns whether the entity should be destroyed or not.

      If an entity should be destroyed, then the entity should not be re-used and any external data on the entity will be cleared.

      Mappings:
      Namespace Name Mixin selector
      official a Latf$c;a()Z
      intermediary method_31486 Lnet/minecraft/class_1297$class_5529;method_31486()Z
      named shouldDestroy Lnet/minecraft/entity/Entity$RemovalReason;shouldDestroy()Z
    • shouldSave

      public boolean shouldSave()
      Returns whether the entity should be saved or not.
      Mappings:
      Namespace Name Mixin selector
      official b Latf$c;b()Z
      intermediary method_31487 Lnet/minecraft/class_1297$class_5529;method_31487()Z
      named shouldSave Lnet/minecraft/entity/Entity$RemovalReason;shouldSave()Z