Package net.minecraft.util
Interface StringIdentifiable
- All Known Implementing Classes:
Attachment
,BambooLeaves
,BedPart
,Biome.Precipitation
,Biome.TemperatureModifier
,BiomeEffects.GrassColorModifier
,BlockHalf
,BlockMirror
,BlockRotation
,ChestType
,ComparatorMode
,Decoration.Parameter
,DensityFunctionTypes.class_6925.Type
,DensityFunctionTypes.class_6927.Type
,DensityFunctionTypes.Operation.Type
,DensityFunctionTypes.WeirdScaledSampler.RarityValueMapper
,Direction
,Direction.Axis
,DirectionTransformation
,DoorHinge
,DoubleBlockHalf
,DyeColor
,Formatting
,GenerationStep.Carver
,GenerationStep.Feature
,Heightmap.Type
,Instrument
,JigsawBlockEntity.Joint
,JigsawOrientation
,MessageType.NarrationRule.Kind
,MineshaftStructure.Type
,OceanRuinStructure.BiomeTemperature
,PistonType
,RailShape
,RuinedPortalStructurePiece.VerticalPlacement
,SculkSensorPhase
,SlabType
,SpawnGroup
,SpreadType
,StairShape
,StructureBlockMode
,StructurePlacement.FrequencyReductionMethod
,StructurePool.Projection
,StructureSpawns.BoundingBox
,StructureTerrainAdaptation
,Thickness
,Tilt
,VerticalSurfaceType
,WallMountLocation
,WallShape
,WireConnection
public interface StringIdentifiable
- Mappings:
Namespace Name official amd
intermediary net/minecraft/class_3542
named net/minecraft/util/StringIdentifiable
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
StringIdentifiable.Codec<E extends Enum<E> & StringIdentifiable>
Deprecated. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString()
static <E extends Enum<E> & StringIdentifiable>
StringIdentifiable.Codec<E>createCodec
(Supplier<E[]> enumValues) Creates a codec that serializes an enum implementing this interface either using its ordinals (when compressed) or using itsasString()
method and a given decode function.static com.mojang.serialization.Keyable
toKeyable
(StringIdentifiable[] values)
-
Field Details
-
field_38377
static final int field_38377- See Also:
- Mappings:
Namespace Name Mixin selector official W
Lamd;W:I
intermediary field_38377
Lnet/minecraft/class_3542;field_38377:I
named field_38377
Lnet/minecraft/util/StringIdentifiable;field_38377:I
-
-
Method Details
-
asString
String asString()- Mappings:
Namespace Name Mixin selector official c
Lamd;c()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-
createCodec
static <E extends Enum<E> & StringIdentifiable> StringIdentifiable.Codec<E> createCodec(Supplier<E[]> enumValues) Creates a codec that serializes an enum implementing this interface either using its ordinals (when compressed) or using itsasString()
method and a given decode function.- Mappings:
Namespace Name Mixin selector official a
Lamd;a(Ljava/util/function/Supplier;)Lamd$a;
intermediary method_28140
Lnet/minecraft/class_3542;method_28140(Ljava/util/function/Supplier;)Lnet/minecraft/class_3542$class_7292;
named createCodec
Lnet/minecraft/util/StringIdentifiable;createCodec(Ljava/util/function/Supplier;)Lnet/minecraft/util/StringIdentifiable$Codec;
-
toKeyable
- Mappings:
Namespace Name Mixin selector official a
Lamd;a([Lamd;)Lcom/mojang/serialization/Keyable;
intermediary method_28142
Lnet/minecraft/class_3542;method_28142([Lnet/minecraft/class_3542;)Lcom/mojang/serialization/Keyable;
named toKeyable
Lnet/minecraft/util/StringIdentifiable;toKeyable([Lnet/minecraft/util/StringIdentifiable;)Lcom/mojang/serialization/Keyable;
-