Package net.minecraft.util
Interface StringRepresentable
- All Known Implementing Classes:
AttachFace
,BambooLeaves
,BedPart
,BellAttachType
,Biome.BiomeCategory
,Biome.Precipitation
,Biome.TemperatureModifier
,BiomeSpecialEffects.GrassColorModifier
,CaveSurface
,ChestType
,Clips.ClipReference
,Clips.IdentityClip
,ComparatorMode
,Direction
,Direction.Axis
,DoorHingeSide
,DoubleBlockHalf
,DripstoneThickness
,DyeColor
,FrontAndTop
,GenerationStep.Carving
,Half
,Heightmap.Types
,JigsawBlockEntity.JointType
,MineshaftFeature.Type
,MobCategory
,NoteBlockInstrument
,OceanRuinFeature.Type
,OctahedralGroup
,PistonType
,RailShape
,RedstoneSide
,RuinedPortalFeature.Type
,SculkSensorPhase
,SlabType
,StairsShape
,StructureMode
,StructureTemplatePool.Projection
,Tilt
,TimeValues.IdentityValue
,TimeValues.ParameterValue
,WallSide
public interface StringRepresentable
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Enum<E> & StringRepresentable>
com.mojang.serialization.Codec<E>static <E extends StringRepresentable>
com.mojang.serialization.Codec<E>fromStringResolver(ToIntFunction<E> p_14354_, IntFunction<E> p_14355_, Function<? super String,? extends E> p_14356_)
static com.mojang.serialization.Keyable
keys(StringRepresentable[] p_14358_)
-
Method Details
-
getSerializedName
String getSerializedName() -
fromEnum
static <E extends Enum<E> & StringRepresentable> com.mojang.serialization.Codec<E> fromEnum(Supplier<E[]> p_14351_, Function<? super String,? extends E> p_14352_) -
fromStringResolver
static <E extends StringRepresentable> com.mojang.serialization.Codec<E> fromStringResolver(ToIntFunction<E> p_14354_, IntFunction<E> p_14355_, Function<? super String,? extends E> p_14356_) -
keys
-