Package net.minecraft.util
Interface StringRepresentable
- All Known Subinterfaces:
SkullBlock.Type,SlotRange
- All Known Implementing Classes:
AdvancementType,Armadillo.ArmadilloState,ArmorType,AttachFace,AttributeModifier.Operation,Axolotl.Variant,BambooLeaves,BedPart,BellAttachType,Biome.Precipitation,Biome.TemperatureModifier,BiomeSpecialEffects.GrassColorModifier,BossEvent.BossBarColor,BossEvent.BossBarOverlay,CaveSurface,ChatFormatting,ChatTrustLevel,ChatTypeDecoration.Parameter,ChestType,ChickenVariant.ModelType,ClickEvent.Action,CloudStatus,CombinedCondition.Operation,ComparatorMode,CompassAngleState.CompassTarget,CookingBookCategory,CopperGolemState,CopperGolemStatueBlock.Pose,CopyCustomDataFunction.MergeStrategy,CowVariant.ModelType,CraftingBookCategory,CreakingHeartState,CrossbowItem.ChargeType,DamageEffects,DamageScaling,DatapackStructureReport.Format,DeathMessageType,DebugScreenEntryStatus,DebugScreenProfile,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,EquipmentClientInfo.LayerType,EquipmentSlot,EquipmentSlotGroup,FilterMask.Type,FireworkExplosion.Shape,FontOption,Fox.Variant,FrontAndTop,GameRulesService.RuleType,GameType,GenerationStep.Decoration,GlyphProviderType,GossipType,GuiSpriteScaling.Type,Half,HangingSignRenderer.AttachmentType,Heightmap.Types,HoverEvent.Action,HumanoidArm,InactivityFpsLimit,ItemAttributeModifiers.Display.Type,ItemDisplayContext,ItemUseAnimation,JigsawBlockEntity.JointType,Level.ExplosionInteraction,LiquidSettings,ListOperation.Type,Llama.Variant,LoggedChatEvent.Type,LootContext.BlockEntityTarget,LootContext.EntityTarget,LootContext.ItemStackTarget,MineshaftStructure.Type,Mirror,MobCategory,MushroomCow.Variant,MusicManager.MusicFrequency,NoteBlockInstrument,ObjectiveCriteria.RenderType,OceanRuinStructure.Type,OctahedralGroup,PackType,Panda.Gene,Parrot.Variant,PigVariant.ModelType,PistonType,PlayerModelPart,PlayerModelType,Pose,QuickPlayLog.Type,Rabbit.Variant,Raid.RaidStatus,RailShape,RandomSpreadType,Rarity,RedstoneSide,Rotation,RuinedPortalPiece.VerticalPlacement,Salmon.Variant,SculkSensorPhase,SetNameFunction.Target,SideChainPart,SkullBlock.Types,SlabType,SpawnParticlesEffect.PositionSourceType,StairsShape,StructureMode,StructurePlacement.FrequencyReductionMethod,StructureSpawnOverride.BoundingBoxType,StructureTemplatePool.Projection,Team.CollisionRule,Team.Visibility,TelemetryProperty.GameMode,TelemetryProperty.ServerType,TerrainAdjustment,TestBlockMode,TestEnvironmentDefinition.Weather.Type,TestInstanceBlockEntity.Status,Tilt,Time.TimeSource,TransformationHelper.TransformOrigin,TrialSpawnerState,TropicalFish.Pattern,UniformValue.Type,Variant,VaultState,VillagerMetadataSection.Hat,WallSide,WeatheringCopper.WeatherState
public interface StringRepresentable
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classStringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>static class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends StringRepresentable>
Function<String, T> createNameLookup(T[] pValues) createNameLookup(T[] pValues, Function<T, String> pSerializer) static <E extends Enum<E> & StringRepresentable>
StringRepresentable.EnumCodec<E> static <E extends Enum<E> & StringRepresentable>
StringRepresentable.EnumCodec<E> fromEnumWithMapping(Supplier<E[]> pEnumValues, Function<String, String> pKeyFunction) static <T extends StringRepresentable>
com.mojang.serialization.Codec<T> fromValues(Supplier<T[]> pValuesSupplier) static com.mojang.serialization.Keyablekeys(StringRepresentable[] pSerializables)
-
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[]> pElementsSupplier) -
fromEnumWithMapping
static <E extends Enum<E> & StringRepresentable> StringRepresentable.EnumCodec<E> fromEnumWithMapping(Supplier<E[]> pEnumValues, Function<String, String> pKeyFunction) -
fromValues
static <T extends StringRepresentable> com.mojang.serialization.Codec<T> fromValues(Supplier<T[]> pValuesSupplier) -
createNameLookup
-
createNameLookup
-
keys
-