Package net.minecraft.util
Interface StringRepresentable
- All Known Subinterfaces:
SkullBlock.Type
,SlotRange
- All Known Implementing Classes:
AdvancementType
,Armadillo.ArmadilloState
,ArmorItem.Type
,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
,CopyComponentsFunction.Source
,CopyCustomDataFunction.MergeStrategy
,CopyNameFunction.NameSource
,CraftingBookCategory
,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
,EnchantmentTarget
,EquipmentSlot
,EquipmentSlotGroup
,FilterMask.Type
,FireworkExplosion.Shape
,FontOption
,Fox.Type
,FrontAndTop
,GameType
,GenerationStep.Carving
,GenerationStep.Decoration
,GlyphProviderType
,GossipType
,GuiSpriteScaling.Type
,Half
,Heightmap.Types
,HoverEvent.Action
,HumanoidArm
,ItemDisplayContext
,JigsawBlockEntity.JointType
,Level.ExplosionInteraction
,LiquidSettings
,ListOperation.Type
,Llama.Variant
,LoggedChatEvent.Type
,LootContext.EntityTarget
,MineshaftStructure.Type
,Mirror
,MobCategory
,MushroomCow.MushroomType
,NoteBlockInstrument
,ObjectiveCriteria.RenderType
,OceanRuinStructure.Type
,OctahedralGroup
,Panda.Gene
,Parrot.Variant
,PistonType
,QuickPlayLog.Type
,Rabbit.Variant
,RailShape
,RandomSpreadType
,Rarity
,RedstoneSide
,Rotation
,RuinedPortalPiece.VerticalPlacement
,SculkSensorPhase
,SetNameFunction.Target
,SkullBlock.Types
,SlabType
,SpawnParticlesEffect.PositionSourceType
,StairsShape
,StructureMode
,StructurePlacement.FrequencyReductionMethod
,StructureSpawnOverride.BoundingBoxType
,StructureTemplatePool.Projection
,TelemetryProperty.GameMode
,TelemetryProperty.ServerType
,TerrainAdjustment
,Tilt
,TransformationHelper.TransformOrigin
,TrialSpawnerState
,TropicalFish.Pattern
,Variant
,VaultState
,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_312243_, Function<String, String> p_313109_) 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_311788_) 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_311788_) -
createNameLookup
-
keys
-