Enum Class BlockTransformer.DropStrategy
java.lang.Object
java.lang.Enum<BlockTransformer.DropStrategy>
net.minecraft.core.component.BlockTransformer.DropStrategy
- All Implemented Interfaces:
Serializable, Comparable<BlockTransformer.DropStrategy>, Constable, StringRepresentable
- Enclosing class:
BlockTransformer
public static enum BlockTransformer.DropStrategy
extends Enum<BlockTransformer.DropStrategy>
implements StringRepresentable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface StringRepresentable
StringRepresentable.EnumCodec<E>, StringRepresentable.StringRepresentableCodec<S> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IntFunction<BlockTransformer.DropStrategy> static final com.mojang.serialization.Codec<BlockTransformer.DropStrategy> private final intprivate final Stringprivate final BlockTransformer.DropStrategy.ResourcePopperstatic final StreamCodec<io.netty.buffer.ByteBuf, BlockTransformer.DropStrategy> Fields inherited from interface StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDropStrategy(int id, String name, BlockTransformer.DropStrategy.ResourcePopper resourcePopper) -
Method Summary
Modifier and TypeMethodDescriptionintgetId()voidReturns the enum constant of this class with the specified name.static BlockTransformer.DropStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLICKED_FACE
-
FROM_MIDDLE
-
-
Field Details
-
id
private final int id -
name
-
resourcePopper
-
CODEC
-
BY_ID
-
STREAM_CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, BlockTransformer.DropStrategy> STREAM_CODEC
-
-
Constructor Details
-
DropStrategy
private DropStrategy(int id, String name, BlockTransformer.DropStrategy.ResourcePopper resourcePopper)
-
-
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 interfaceStringRepresentable
-
getId
public int getId() -
pop
-