Package net.minecraft.entity
Enum Entity.RemovalReason
- All Implemented Interfaces:
Serializable,Comparable<Entity.RemovalReason>,java.lang.constant.Constable
- Enclosing class:
- Entity
public static enum Entity.RemovalReason extends Enum<Entity.RemovalReason>
- Mappings:
Namespace Name official aqv$cintermediary net/minecraft/class_1297$class_5529named net/minecraft/entity/Entity$RemovalReason
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description CHANGED_DIMENSIONThe entity changed dimension.DISCARDEDKILLEDThe entity is killed.UNLOADED_TO_CHUNKThe entity is unloaded to chunk.UNLOADED_WITH_PLAYER -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateRemovalReason(boolean destroy, boolean save) -
Method Summary
Modifier and Type Method Description booleanshouldDestroy()Returns whether the entity should be destroyed or not.booleanshouldSave()Returns whether the entity should be saved or not.static Entity.RemovalReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static Entity.RemovalReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
KILLED
The entity is killed.- Mappings:
Namespace Name Mixin selector official aLaqv$c;a:Laqv$c;intermediary field_26998Lnet/minecraft/class_1297$class_5529;field_26998:Lnet/minecraft/class_1297$class_5529;named KILLEDLnet/minecraft/entity/Entity$RemovalReason;KILLED:Lnet/minecraft/entity/Entity$RemovalReason;
-
DISCARDED
- Mappings:
Namespace Name Mixin selector official bLaqv$c;b:Laqv$c;intermediary field_26999Lnet/minecraft/class_1297$class_5529;field_26999:Lnet/minecraft/class_1297$class_5529;named DISCARDEDLnet/minecraft/entity/Entity$RemovalReason;DISCARDED:Lnet/minecraft/entity/Entity$RemovalReason;
-
UNLOADED_TO_CHUNK
The entity is unloaded to chunk.The entity should be saved.
- Mappings:
Namespace Name Mixin selector official cLaqv$c;c:Laqv$c;intermediary field_27000Lnet/minecraft/class_1297$class_5529;field_27000:Lnet/minecraft/class_1297$class_5529;named UNLOADED_TO_CHUNKLnet/minecraft/entity/Entity$RemovalReason;UNLOADED_TO_CHUNK:Lnet/minecraft/entity/Entity$RemovalReason;
-
UNLOADED_WITH_PLAYER
- Mappings:
Namespace Name Mixin selector official dLaqv$c;d:Laqv$c;intermediary field_27001Lnet/minecraft/class_1297$class_5529;field_27001:Lnet/minecraft/class_1297$class_5529;named UNLOADED_WITH_PLAYERLnet/minecraft/entity/Entity$RemovalReason;UNLOADED_WITH_PLAYER:Lnet/minecraft/entity/Entity$RemovalReason;
-
CHANGED_DIMENSION
The entity changed dimension.- Mappings:
Namespace Name Mixin selector official eLaqv$c;e:Laqv$c;intermediary field_27002Lnet/minecraft/class_1297$class_5529;field_27002:Lnet/minecraft/class_1297$class_5529;named CHANGED_DIMENSIONLnet/minecraft/entity/Entity$RemovalReason;CHANGED_DIMENSION:Lnet/minecraft/entity/Entity$RemovalReason;
-
-
Field Details
-
destroy
private final boolean destroy- Mappings:
Namespace Name Mixin selector official fLaqv$c;f:Zintermediary field_27003Lnet/minecraft/class_1297$class_5529;field_27003:Znamed destroyLnet/minecraft/entity/Entity$RemovalReason;destroy:Z
-
save
private final boolean save- Mappings:
Namespace Name Mixin selector official gLaqv$c;g:Zintermediary field_27004Lnet/minecraft/class_1297$class_5529;field_27004:Znamed saveLnet/minecraft/entity/Entity$RemovalReason;save:Z
-
-
Constructor Details
-
RemovalReason
private RemovalReason(boolean destroy, boolean save)- Mappings:
Namespace Name Mixin selector official <init>Laqv$c;<init>(Ljava/lang/String;IZZ)Vintermediary <init>Lnet/minecraft/class_1297$class_5529;<init>(Ljava/lang/String;IZZ)Vnamed <init>Lnet/minecraft/entity/Entity$RemovalReason;<init>(Ljava/lang/String;IZZ)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- 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 aLaqv$c;a()Zintermediary method_31486Lnet/minecraft/class_1297$class_5529;method_31486()Znamed shouldDestroyLnet/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 bLaqv$c;b()Zintermediary method_31487Lnet/minecraft/class_1297$class_5529;method_31487()Znamed shouldSaveLnet/minecraft/entity/Entity$RemovalReason;shouldSave()Z
-