接口 StringRepresentable
- 所有已知子接口:
SkullBlock.Type
,SlotRange
- 所有已知实现类:
AdvancementType
,Armadillo.ArmadilloState
,ArmorType
,AttachFace
,AttributeModifier.Operation
,Axolotl.Variant
,BambooLeaves
,BedPart
,BellAttachType
,Biome.Precipitation
,Biome.TemperatureModifier
,BiomeSpecialEffects.GrassColorModifier
,BossEvent.BossBarColor
,BossEvent.BossBarOverlay
,CaveSurface
,ChatFormatting
,ChatTypeDecoration.Parameter
,ChestType
,ChickenVariant.ModelType
,ClickEvent.Action
,ComparatorMode
,ComponentContents.Type
,CookingBookCategory
,CopyComponentsFunction.Source
,CopyCustomDataFunction.MergeStrategy
,CopyNameFunction.NameSource
,CowVariant.ModelType
,CraftingBookCategory
,CreakingHeartState
,CrossbowItem.ChargeType
,CustomHeadTest.SkullType
,DamageEffects
,DamageScaling
,DatapackStructureReport.Format
,DataSource.Type
,DeathMessageType
,DensityFunctions.Mapped.Type
,DensityFunctions.Marker.Type
,DensityFunctions.TwoArgumentSimpleFunction.Type
,DensityFunctions.WeirdScaledSampler.RarityValueMapper
,DialogAction
,Difficulty
,Direction
,Direction.Axis
,Display.BillboardConstraints
,Display.TextDisplay.Align
,DisplaySlot
,DoorHingeSide
,DoubleBlockHalf
,DripstoneThickness
,DyeColor
,EnchantmentTarget
,EquipmentSlot
,EquipmentSlotGroup
,FilterMask.Type
,FireworkExplosion.Shape
,Fox.Variant
,FrontAndTop
,GameType
,GenerationStep.Decoration
,GossipType
,Half
,Heightmap.Types
,HoverEvent.Action
,HumanoidArm
,ItemAttributeModifiers.Display.Type
,ItemDisplayContext
,ItemUseAnimation
,JigsawBlockEntity.JointType
,Level.ExplosionInteraction
,LiquidSettings
,ListOperation.Type
,Llama.Variant
,LootContext.EntityTarget
,MineshaftStructure.Type
,Mirror
,MobCategory
,MushroomCow.Variant
,NoteBlockInstrument
,ObjectiveCriteria.RenderType
,OceanRuinStructure.Type
,OctahedralGroup
,PackType
,Panda.Gene
,Parrot.Variant
,PigVariant.ModelType
,PistonType
,Rabbit.Variant
,Raid.RaidStatus
,RailShape
,RandomSpreadType
,Rarity
,RedstoneSide
,Rotation
,RuinedPortalPiece.VerticalPlacement
,Salmon.Variant
,SculkSensorPhase
,SetNameFunction.Target
,SkullBlock.Types
,SlabType
,SpawnParticlesEffect.PositionSourceType
,StairsShape
,StructureMode
,StructurePlacement.FrequencyReductionMethod
,StructureSpawnOverride.BoundingBoxType
,StructureTemplatePool.Projection
,Team.CollisionRule
,Team.Visibility
,TerrainAdjustment
,TestBlockMode
,TestEnvironmentDefinition.Weather.Type
,TestInstanceBlockEntity.Status
,Tilt
,TransformationHelper.TransformOrigin
,TrialSpawnerState
,TropicalFish.Pattern
,Variant
,VaultState
,WallSide
,WeatheringCopper.WeatherState
public interface StringRepresentable
-
嵌套类概要
嵌套类修饰符和类型接口说明static class
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>
static class
-
字段概要
字段 -
方法概要
修饰符和类型方法说明static <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_)
-
字段详细资料
-
PRE_BUILT_MAP_THRESHOLD
static final int PRE_BUILT_MAP_THRESHOLD- 另请参阅:
-
-
方法详细资料
-
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
-