Package net.minecraft.util
Interface StringRepresentable
- All Known Subinterfaces:
SkullBlock.Type
- All Known Implementing Classes:
AdvancementType
,ArmorMaterials
,AttachFace
,AttributeModifier.Operation
,Axolotl.Variant
,BambooLeaves
,BedPart
,BellAttachType
,Biome.Precipitation
,Biome.TemperatureModifier
,BiomeSpecialEffects.GrassColorModifier
,Boat.Type
,CaveSurface
,ChatFormatting
,ChatTrustLevel
,ChatTypeDecoration.Parameter
,ChestType
,ClickEvent.Action
,CloudStatus
,ComparatorMode
,ComponentContents.Type
,CookingBookCategory
,CopyNameFunction.NameSource
,CopyNbtFunction.MergeStrategy
,CraftingBookCategory
,CustomHeadTest.SkullType
,DamageEffects
,DamageScaling
,DataSource.Type
,DeathMessageType
,DensityFunctions.Mapped.Type
,DensityFunctions.Marker.Type
,DensityFunctions.TwoArgumentSimpleFunction.Type
,DensityFunctions.WeirdScaledSampler.RarityValueMapper
,Difficulty
,Direction
,Direction.Axis
,Display.BillboardConstraints
,Display.TextDisplay.Align
,DisplaySlot
,DoorHingeSide
,DoubleBlockHalf
,DripstoneThickness
,DyeColor
,EquipmentSlot
,FilterMask.Type
,Fox.Type
,FrontAndTop
,GameType
,GenerationStep.Carving
,GenerationStep.Decoration
,GlyphProviderType
,GossipType
,GuiSpriteScaling.Type
,Half
,Heightmap.Types
,HoverEvent.Action
,HumanoidArm
,ItemDisplayContext
,JigsawBlockEntity.JointType
,Llama.Variant
,LoggedChatEvent.Type
,LootContext.EntityTarget
,MapDecoration.Type
,MineshaftStructure.Type
,Mirror
,MobCategory
,MushroomCow.MushroomType
,NoteBlockInstrument
,ObjectiveCriteria.RenderType
,OceanRuinStructure.Type
,OctahedralGroup
,PackType
,Panda.Gene
,Parrot.Variant
,PistonType
,QuickPlayLog.Type
,Rabbit.Variant
,RailShape
,RandomSpreadType
,RedstoneSide
,Rotation
,RuinedPortalPiece.VerticalPlacement
,SculkSensorPhase
,SkullBlock.Types
,SlabType
,StairsShape
,StructureMode
,StructurePlacement.FrequencyReductionMethod
,StructureSpawnOverride.BoundingBoxType
,StructureTemplatePool.Projection
,TelemetryProperty.GameMode
,TelemetryProperty.ServerType
,TerrainAdjustment
,Tilt
,TransformationHelper.TransformOrigin
,TrialSpawnerState
,TropicalFish.Pattern
,Variant
,WallSide
,WeatheringCopper.WeatherState
public interface StringRepresentable
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>
Deprecated.static class
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends StringRepresentable>
Function<String,T> createNameLookup
(T[] p_304419_, Function<String, String> p_304658_) static <E extends Enum<E> & StringRepresentable>
StringRepresentable.EnumCodec<E>static <E extends Enum<E> & StringRepresentable>
StringRepresentable.EnumCodec<E>fromEnumWithMapping
(Supplier<E[]> p_275615_, Function<String, String> p_275259_) static <T extends StringRepresentable>
com.mojang.serialization.Codec<T>fromValues
(Supplier<T[]> p_304543_) static com.mojang.serialization.Keyable
keys
(StringRepresentable[] p_14358_)
-
Field Details
-
PRE_BUILT_MAP_THRESHOLD
static final int PRE_BUILT_MAP_THRESHOLD- See Also:
-
-
Method Details
-
getSerializedName
String getSerializedName() -
fromEnum
static <E extends Enum<E> & StringRepresentable> StringRepresentable.EnumCodec<E> fromEnum(Supplier<E[]> p_216440_) -
fromEnumWithMapping
static <E extends Enum<E> & StringRepresentable> StringRepresentable.EnumCodec<E> fromEnumWithMapping(Supplier<E[]> p_275615_, Function<String, String> p_275259_) -
fromValues
static <T extends StringRepresentable> com.mojang.serialization.Codec<T> fromValues(Supplier<T[]> p_304543_) -
createNameLookup
-
keys
-