Package net.minecraft.util
Interface IStringSerializable
- All Known Implementing Classes:
AttachFace
,BambooLeaves
,BedPart
,BellAttachment
,Biome.Category
,Biome.RainType
,Biome.TemperatureModifier
,BiomeAmbience.GrassColorModifier
,ChestType
,Clips.ClipReference
,Clips.IdentityClip
,ComparatorMode
,Direction
,Direction.Axis
,DoorHingeSide
,DoubleBlockHalf
,DyeColor
,EntityClassification
,GenerationStage.Carving
,Half
,Heightmap.Type
,JigsawOrientation
,JigsawPattern.PlacementBehaviour
,JigsawTileEntity.OrientationType
,MineshaftStructure.Type
,NoteBlockInstrument
,OceanRuinStructure.Type
,Orientation
,PistonType
,RailShape
,RedstoneSide
,RuinedPortalStructure.Location
,SlabType
,StairsShape
,StructureMode
,TimeValues.IdentityValue
,TimeValues.ParameterValue
,WallHeight
public interface IStringSerializable
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Enum<E> & IStringSerializable>
com.mojang.serialization.Codec<E>static <E extends IStringSerializable>
com.mojang.serialization.Codec<E>fromStringResolver
(ToIntFunction<E> p_233024_0_, IntFunction<E> p_233024_1_, Function<? super String, ? extends E> p_233024_2_) static com.mojang.serialization.Keyable
keys
(IStringSerializable[] p_233025_0_)
-
Method Details
-
getSerializedName
String getSerializedName() -
fromEnum
static <E extends Enum<E> & IStringSerializable> com.mojang.serialization.Codec<E> fromEnum(Supplier<E[]> p_233023_0_, Function<? super String, ? extends E> p_233023_1_) -
fromStringResolver
static <E extends IStringSerializable> com.mojang.serialization.Codec<E> fromStringResolver(ToIntFunction<E> p_233024_0_, IntFunction<E> p_233024_1_, Function<? super String, ? extends E> p_233024_2_) -
keys
-