Package net.minecraft.util
Interface StringIdentifiable
- All Known Implementing Classes:
Attachment
,BambooLeaves
,BedPart
,Biome.Category
,Biome.Precipitation
,Biome.TemperatureModifier
,BiomeEffects.GrassColorModifier
,BlockHalf
,ChestType
,ComparatorMode
,DensityFunctionTypes.class_6925.Type
,DensityFunctionTypes.class_6927.Type
,DensityFunctionTypes.Operation.Type
,DensityFunctionTypes.TerrainShaperSpline.Spline
,DensityFunctionTypes.WeirdScaledSampler.RarityValueMapper
,Direction
,Direction.Axis
,DirectionTransformation
,DoorHinge
,DoubleBlockHalf
,DyeColor
,GenerationStep.Carver
,Heightmap.Type
,Instrument
,JigsawBlockEntity.Joint
,JigsawOrientation
,MineshaftFeature.Type
,OceanRuinFeature.BiomeType
,PistonType
,RailShape
,RuinedPortalFeature.Type
,SculkSensorPhase
,SlabType
,SpawnGroup
,SpreadType
,StairShape
,StructureBlockMode
,StructurePool.Projection
,StructureSpawns.BoundingBox
,Thickness
,Tilt
,VanillaTerrainParameters.LocationFunction
,VerticalSurfaceType
,WallMountLocation
,WallShape
,WireConnection
public interface StringIdentifiable
- Mappings:
Namespace Name official ajt
intermediary net/minecraft/class_3542
named net/minecraft/util/StringIdentifiable
-
Method Summary
Modifier and TypeMethodDescriptionasString()
static <E extends Enum<E> & StringIdentifiable>
com.mojang.serialization.Codec<E>createCodec
(Supplier<E[]> enumValues, Function<String, E> fromString) 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)
-
Method Details
-
asString
String asString()- Mappings:
Namespace Name Mixin selector official c
Lajt;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> com.mojang.serialization.Codec<E> createCodec(Supplier<E[]> enumValues, Function<String, E> fromString) 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
Lajt;a(Ljava/util/function/Supplier;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
intermediary method_28140
Lnet/minecraft/class_3542;method_28140(Ljava/util/function/Supplier;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
named createCodec
Lnet/minecraft/util/StringIdentifiable;createCodec(Ljava/util/function/Supplier;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
-
toKeyable
- Mappings:
Namespace Name Mixin selector official a
Lajt;a([Lajt;)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;
-