Enum Class ExplosionDefinition.ExplosionInteraction
java.lang.Object
java.lang.Enum<ExplosionDefinition.ExplosionInteraction>
johnsmith.enchantmentcore.api.enchantment.effect.ExplosionDefinition.ExplosionInteraction
- All Implemented Interfaces:
Serializable, Comparable<ExplosionDefinition.ExplosionInteraction>, Constable, net.minecraft.util.StringRepresentable
- Enclosing class:
ExplosionDefinition
public static enum ExplosionDefinition.ExplosionInteraction
extends Enum<ExplosionDefinition.ExplosionInteraction>
implements net.minecraft.util.StringRepresentable
Serializable representation of vanilla
Level.ExplosionInteraction block interaction behaviors.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
net.minecraft.util.StringRepresentable.EnumCodec<E>, net.minecraft.util.StringRepresentable.StringRepresentableCodec<S> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStandard block destruction respecting block drop rules.Mob griefing dependent block destruction.No blocks are destroyed or triggered.TNT-style block destruction with full item drop rates.Triggers redstone-sensitive blocks (like wind charges) without destroying blocks. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ExplosionDefinition.ExplosionInteraction> Codec for serializing and deserializingExplosionDefinition.ExplosionInteractionconstants by their lowercase identifier.Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Method Summary
-
Enum Constant Details
-
NONE
No blocks are destroyed or triggered. -
BLOCK
Standard block destruction respecting block drop rules. -
MOB
Mob griefing dependent block destruction. -
TNT
TNT-style block destruction with full item drop rates. -
TRIGGER
Triggers redstone-sensitive blocks (like wind charges) without destroying blocks.
-
-
Field Details
-
CODEC
Codec for serializing and deserializingExplosionDefinition.ExplosionInteractionconstants by their lowercase identifier.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getSerializedName
- Specified by:
getSerializedNamein interfacenet.minecraft.util.StringRepresentable
-