Package petrolpark.mc.library.util
Class Lang
java.lang.Object
petrolpark.mc.library.util.Lang
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DecimalFormatstatic final DecimalFormatstatic final DecimalFormat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.network.chat.Componentaction(net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.Action action, net.minecraft.core.BlockPos pos) static final voidstatic final voidaddFlags(Consumer<net.minecraft.network.chat.Component> tooltip, IFlagPole<?, ?> flags, boolean addBlankLine) static final net.minecraft.network.chat.ComponentadvancedIngredient(String keyEnd, Object... translationArgs) static final net.createmod.catnip.lang.LangBuilderappendFlags(net.createmod.catnip.lang.LangBuilder builder, IFlagPole<?, ?> flags) static Stringstatic net.minecraft.network.chat.Componentaxis(net.minecraft.core.Direction.Axis axis) static final net.createmod.catnip.lang.LangBuilderbuilder()static net.minecraft.network.chat.ComponentclickType(net.minecraft.world.inventory.ClickType clickType, int slot) static net.minecraft.network.chat.Componentdirection(net.minecraft.core.Direction direction) static net.minecraft.network.chat.Componentenabled(boolean enabled) static net.minecraft.network.chat.Componentstatic final StringgenericTranslationKey(String keyEnd) static net.minecraft.network.chat.ComponentgossipType(net.minecraft.world.entity.ai.gossip.GossipType type) static net.minecraft.network.chat.Componenthand(net.minecraft.world.InteractionHand hand) static final net.minecraft.network.chat.Componentloot(net.minecraft.resources.ResourceLocation id) static final StringmathTranslationKey(String key) static net.minecraft.network.chat.Componentnone()static final net.minecraft.resources.ResourceLocationprependLocation(String prefix, net.minecraft.resources.ResourceLocation rl) static final StringprependPath(String prefix, String path) static final net.minecraft.network.chat.Componentrange(float min, float max, boolean approximate, DecimalFormat df) static final net.minecraft.network.chat.Componentrange(float min, float max, DecimalFormat df) static final net.minecraft.network.chat.ComponentrangeWorded(float min, float max, boolean inverse, DecimalFormat df) static net.minecraft.network.chat.Componentrarity(net.minecraft.world.item.Rarity rarity) static Stringstatic net.minecraft.network.chat.Componentshorten(net.minecraft.network.chat.Component component, net.minecraft.client.gui.Font font, int maxWidth) static Stringstatic net.minecraft.network.chat.Componentstatic net.minecraft.network.chat.ComponentshortList(List<? extends net.minecraft.network.chat.Component> elements, int maxTextWidth, net.minecraft.client.gui.Font font) static net.minecraft.network.chat.Componenttag(net.minecraft.tags.TagKey<?> tagKey) static final Collector<net.minecraft.network.chat.Component, net.minecraft.network.chat.MutableComponent, net.minecraft.network.chat.Component> static Collector<net.minecraft.network.chat.Component, net.minecraft.network.chat.MutableComponent, net.minecraft.network.chat.Component> toComponent(net.minecraft.network.chat.Component joiner) static final net.minecraft.network.chat.MutableComponentstatic final net.minecraft.network.chat.Component
-
Field Details
-
INT_DF
-
ONE_DP_DF
-
TWO_DP_DF
-
-
Constructor Details
-
Lang
public Lang()
-
-
Method Details
-
asId
-
shorten
-
shorten
public static net.minecraft.network.chat.Component shorten(net.minecraft.network.chat.Component component, net.minecraft.client.gui.Font font, int maxWidth) -
prependPath
-
prependLocation
public static final net.minecraft.resources.ResourceLocation prependLocation(String prefix, net.minecraft.resources.ResourceLocation rl) -
shortList
public static net.minecraft.network.chat.Component shortList(List<? extends net.minecraft.network.chat.Component> elements, int maxTextWidth) -
shortList
public static net.minecraft.network.chat.Component shortList(List<? extends net.minecraft.network.chat.Component> elements, int maxTextWidth, net.minecraft.client.gui.Font font) -
shortList
-
addFlags
-
addFlags
-
appendFlags
public static final net.createmod.catnip.lang.LangBuilder appendFlags(net.createmod.catnip.lang.LangBuilder builder, IFlagPole<?, ?> flags) -
translate
-
builder
public static final net.createmod.catnip.lang.LangBuilder builder() -
genericTranslationKey
-
mathTranslationKey
-
advancedIngredient
-
generic
-
none
public static net.minecraft.network.chat.Component none() -
rarity
public static net.minecraft.network.chat.Component rarity(net.minecraft.world.item.Rarity rarity) -
axis
public static net.minecraft.network.chat.Component axis(net.minecraft.core.Direction.Axis axis) -
direction
public static net.minecraft.network.chat.Component direction(net.minecraft.core.Direction direction) -
clickType
public static net.minecraft.network.chat.Component clickType(net.minecraft.world.inventory.ClickType clickType, int slot) -
hand
public static net.minecraft.network.chat.Component hand(net.minecraft.world.InteractionHand hand) -
action
public static net.minecraft.network.chat.Component action(net.minecraft.network.protocol.game.ServerboundPlayerActionPacket.Action action, net.minecraft.core.BlockPos pos) -
enabled
public static net.minecraft.network.chat.Component enabled(boolean enabled) -
gossipType
public static net.minecraft.network.chat.Component gossipType(net.minecraft.world.entity.ai.gossip.GossipType type) -
tag
public static net.minecraft.network.chat.Component tag(net.minecraft.tags.TagKey<?> tagKey) -
loot
public static final net.minecraft.network.chat.Component loot(net.minecraft.resources.ResourceLocation id) -
unknownRange
public static final net.minecraft.network.chat.Component unknownRange() -
range
public static final net.minecraft.network.chat.Component range(float min, float max, DecimalFormat df) -
range
public static final net.minecraft.network.chat.Component range(float min, float max, boolean approximate, DecimalFormat df) -
rangeWorded
public static final net.minecraft.network.chat.Component rangeWorded(float min, float max, boolean inverse, DecimalFormat df) -
toComponent
public static final Collector<net.minecraft.network.chat.Component,net.minecraft.network.chat.MutableComponent, toComponent()net.minecraft.network.chat.Component> -
toComponent
public static Collector<net.minecraft.network.chat.Component,net.minecraft.network.chat.MutableComponent, toComponentnet.minecraft.network.chat.Component> (net.minecraft.network.chat.Component joiner)
-