If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at
the top of the file.
import crafttweaker . api.entity . RemovalReason;
Undocumented Interfaces Comparable <Enum >
RemovalReason is an enum with 5 constants. They are accessible like so:
// RemovalReason.CHANGED_DIMENSION
< constant : minecraft:entity/removalreason:changed_dimension >
// RemovalReason.DISCARDED
< constant : minecraft:entity/removalreason:discarded >
< constant : minecraft:entity/removalreason:killed >
// RemovalReason.UNLOADED_TO_CHUNK
< constant : minecraft:entity/removalreason:unloaded_to_chunk >
// RemovalReason.UNLOADED_WITH_PLAYER
< constant : minecraft:entity/removalreason:unloaded_with_player >
// RemovalReason.shouldDestroy as bool
< constant : minecraft:entity/removalreason:changed_dimension > .shouldDestroy
Return Type:
bool
// RemovalReason.shouldDestroy() as bool;
< constant : minecraft:entity/removalreason:changed_dimension > .shouldDestroy();
Return Type:
bool