Remove unnecessary paragraph end tags from documentation (#2295)

* Remove unnecessary paragraph end tags from documentation

* Update mappings/net/minecraft/item/Item.mapping

Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>

Co-authored-by: modmuss50 <modmuss50@gmail.com>
Co-authored-by: enbrain <69905075+enbrain@users.noreply.github.com>
This commit is contained in:
haykam821 2021-04-11 08:08:07 -04:00 committed by GitHub
parent fa6da9349d
commit fbad72f5e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
31 changed files with 58 additions and 59 deletions

View File

@ -10,7 +10,7 @@ CLASS net/minecraft/class_5223 net/minecraft/client/font/TextVisitFactory
METHOD method_27472 visitFormatted (Ljava/lang/String;ILnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z METHOD method_27472 visitFormatted (Ljava/lang/String;ILnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z
COMMENT Visits the code points of a string, applying the formatting codes within. COMMENT Visits the code points of a string, applying the formatting codes within.
COMMENT COMMENT
COMMENT <p>The visit is in forward direction.</p> COMMENT <p>The visit is in forward direction.
COMMENT COMMENT
COMMENT @return {@code true} if the full string was visited, or {@code false} indicating COMMENT @return {@code true} if the full string was visited, or {@code false} indicating
COMMENT the {@code visitor} terminated half-way COMMENT the {@code visitor} terminated half-way
@ -24,7 +24,7 @@ CLASS net/minecraft/class_5223 net/minecraft/client/font/TextVisitFactory
METHOD method_27473 visitFormatted (Ljava/lang/String;ILnet/minecraft/class_2583;Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z METHOD method_27473 visitFormatted (Ljava/lang/String;ILnet/minecraft/class_2583;Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z
COMMENT Visits the code points of a string, applying the formatting codes within. COMMENT Visits the code points of a string, applying the formatting codes within.
COMMENT COMMENT
COMMENT <p>The visit is in forward direction.</p> COMMENT <p>The visit is in forward direction.
COMMENT COMMENT
COMMENT @return {@code true} if the full string was visited, or {@code false} indicating COMMENT @return {@code true} if the full string was visited, or {@code false} indicating
COMMENT the {@code visitor} terminated half-way COMMENT the {@code visitor} terminated half-way
@ -53,7 +53,7 @@ CLASS net/minecraft/class_5223 net/minecraft/client/font/TextVisitFactory
COMMENT Visits the code points for every literal string and the formatting codes COMMENT Visits the code points for every literal string and the formatting codes
COMMENT supplied by the renderable. COMMENT supplied by the renderable.
COMMENT COMMENT
COMMENT <p>The visit is in forward direction.</p> COMMENT <p>The visit is in forward direction.
COMMENT COMMENT
COMMENT @return {@code true} if the full string was visited, or {@code false} indicating COMMENT @return {@code true} if the full string was visited, or {@code false} indicating
COMMENT the {@code visitor} terminated half-way COMMENT the {@code visitor} terminated half-way
@ -80,7 +80,7 @@ CLASS net/minecraft/class_5223 net/minecraft/client/font/TextVisitFactory
METHOD method_27479 visitFormatted (Ljava/lang/String;Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z METHOD method_27479 visitFormatted (Ljava/lang/String;Lnet/minecraft/class_2583;Lnet/minecraft/class_5224;)Z
COMMENT Visits the code points of a string, applying the formatting codes within. COMMENT Visits the code points of a string, applying the formatting codes within.
COMMENT COMMENT
COMMENT <p>The visit is in forward direction.</p> COMMENT <p>The visit is in forward direction.
COMMENT COMMENT
COMMENT @return {@code true} if the full string was visited, or {@code false} indicating COMMENT @return {@code true} if the full string was visited, or {@code false} indicating
COMMENT the {@code visitor} terminated half-way COMMENT the {@code visitor} terminated half-way

View File

@ -20,7 +20,7 @@ CLASS net/minecraft/class_897 net/minecraft/client/render/entity/EntityRenderer
METHOD method_3921 hasLabel (Lnet/minecraft/class_1297;)Z METHOD method_3921 hasLabel (Lnet/minecraft/class_1297;)Z
COMMENT Determines whether the passed entity should render with a nameplate above its head. COMMENT Determines whether the passed entity should render with a nameplate above its head.
COMMENT COMMENT
COMMENT <p>Checks for a custom nametag on living entities, and for teams/team visibilities for players.</p> COMMENT <p>Checks for a custom nametag on living entities, and for teams/team visibilities for players.
ARG 1 entity ARG 1 entity
METHOD method_3926 renderLabelIfPresent (Lnet/minecraft/class_1297;Lnet/minecraft/class_2561;Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V METHOD method_3926 renderLabelIfPresent (Lnet/minecraft/class_1297;Lnet/minecraft/class_2561;Lnet/minecraft/class_4587;Lnet/minecraft/class_4597;I)V
ARG 1 entity ARG 1 entity

View File

@ -107,10 +107,10 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
COMMENT COMMENT
COMMENT <p>Compared to {@link #isSneaking()}, it only makes the entity appear COMMENT <p>Compared to {@link #isSneaking()}, it only makes the entity appear
COMMENT crouching and does not bring other effects of sneaking, such as no less COMMENT crouching and does not bring other effects of sneaking, such as no less
COMMENT obvious name label rendering, no dismounting while riding, etc.</p> COMMENT obvious name label rendering, no dismounting while riding, etc.
COMMENT COMMENT
COMMENT <p>This is used by vanilla for non-player entities to crouch, such as COMMENT <p>This is used by vanilla for non-player entities to crouch, such as
COMMENT for foxes and cats.</p> COMMENT for foxes and cats.
METHOD method_18375 detach ()V METHOD method_18375 detach ()V
COMMENT Removes all the passengers and removes this entity from any vehicles it is riding. COMMENT Removes all the passengers and removes this entity from any vehicles it is riding.
METHOD method_18376 getPose ()Lnet/minecraft/class_4050; METHOD method_18376 getPose ()Lnet/minecraft/class_4050;

View File

@ -5,11 +5,11 @@ CLASS net/minecraft/class_1355 net/minecraft/entity/ai/goal/GoalSelector
COMMENT <p>A running goal will always be replaced with a goal with a <i>lower</i> priority, if COMMENT <p>A running goal will always be replaced with a goal with a <i>lower</i> priority, if
COMMENT such a goal exists, it's competing for the same control and its COMMENT such a goal exists, it's competing for the same control and its
COMMENT {@link Goal#canStart() canStart()} method returns true. (Note that some goals randomize COMMENT {@link Goal#canStart() canStart()} method returns true. (Note that some goals randomize
COMMENT this method.)</p> COMMENT this method.)
COMMENT COMMENT
COMMENT <p>If two goals have the same priority and are competing for the same control, then one COMMENT <p>If two goals have the same priority and are competing for the same control, then one
COMMENT goal cannot replace the other if it's running. The goal selector tries to run goals in the order COMMENT goal cannot replace the other if it's running. The goal selector tries to run goals in the order
COMMENT they were added.</p> COMMENT they were added.
FIELD field_18410 REPLACEABLE_GOAL Lnet/minecraft/class_4135; FIELD field_18410 REPLACEABLE_GOAL Lnet/minecraft/class_4135;
FIELD field_18411 goalsByControl Ljava/util/Map; FIELD field_18411 goalsByControl Ljava/util/Map;
FIELD field_6461 goals Ljava/util/Set; FIELD field_6461 goals Ljava/util/Set;

View File

@ -50,10 +50,10 @@ CLASS net/minecraft/class_1496 net/minecraft/entity/passive/HorseBaseEntity
COMMENT <p>In the item slot argument type, the slot is referred to as <code> COMMENT <p>In the item slot argument type, the slot is referred to as <code>
COMMENT horse.armor</code>. In this horse's screen, it appears in the middle of COMMENT horse.armor</code>. In this horse's screen, it appears in the middle of
COMMENT the left side, and right below the saddle slot if this horse has a saddle COMMENT the left side, and right below the saddle slot if this horse has a saddle
COMMENT slot.</p> COMMENT slot.
COMMENT COMMENT
COMMENT <p>This is used by horse armors and llama carpets, but can be COMMENT <p>This is used by horse armors and llama carpets, but can be
COMMENT refitted to any purpose.</p> COMMENT refitted to any purpose.
METHOD method_6736 isAngry ()Z METHOD method_6736 isAngry ()Z
METHOD method_6737 setAngry (Z)V METHOD method_6737 setAngry (Z)V
ARG 1 angry ARG 1 angry

View File

@ -115,7 +115,6 @@ CLASS net/minecraft/class_1792 net/minecraft/item/Item
COMMENT Note that this is not the <b>only</b> way to achieve "effectiveness" when mining. COMMENT Note that this is not the <b>only</b> way to achieve "effectiveness" when mining.
COMMENT Other items, such as shears on string, may use their own logic COMMENT Other items, such as shears on string, may use their own logic
COMMENT and calls to this method might not return a value consistent to this rule for those items. COMMENT and calls to this method might not return a value consistent to this rule for those items.
COMMENT </p>
ARG 1 state ARG 1 state
METHOD method_7857 hasRecipeRemainder ()Z METHOD method_7857 hasRecipeRemainder ()Z
COMMENT Checks if this item has a remainder item that is left behind when used as a crafting ingredient. COMMENT Checks if this item has a remainder item that is left behind when used as a crafting ingredient.

View File

@ -174,7 +174,7 @@ CLASS net/minecraft/class_1799 net/minecraft/item/ItemStack
COMMENT <p> COMMENT <p>
COMMENT Depending on block implementation, when combined together, the correct item and block may achieve a better mining speed and yield COMMENT Depending on block implementation, when combined together, the correct item and block may achieve a better mining speed and yield
COMMENT drops that would not be obtained when mining otherwise. COMMENT drops that would not be obtained when mining otherwise.
COMMENT </p> COMMENT
COMMENT @return values consistent with calls to {@link Item#isSuitableFor} COMMENT @return values consistent with calls to {@link Item#isSuitableFor}
COMMENT @see Item#isSuitableFor(BlockState) COMMENT @see Item#isSuitableFor(BlockState)
ARG 1 state ARG 1 state

View File

@ -1,4 +1,4 @@
CLASS net/minecraft/class_5151 net/minecraft/item/Wearable CLASS net/minecraft/class_5151 net/minecraft/item/Wearable
COMMENT Represents a type of item that is wearable in an armor equipment slot. COMMENT Represents a type of item that is wearable in an armor equipment slot.
COMMENT COMMENT
COMMENT <p>This type of item can be targeted by the {@code minecraft:binding_curse} enchantment.</p> COMMENT <p>This type of item can be targeted by the {@code minecraft:binding_curse} enchantment.

View File

@ -8,7 +8,7 @@ CLASS net/minecraft/class_2509 net/minecraft/nbt/NbtOps
COMMENT they will be transported in packets as NBT. DataFixerUpper allows COMMENT they will be transported in packets as NBT. DataFixerUpper allows
COMMENT generalizing the dimension serialization logic to prevent duplicate code, COMMENT generalizing the dimension serialization logic to prevent duplicate code,
COMMENT where the NBT ops allow the DataFixerUpper dimension serialization logic COMMENT where the NBT ops allow the DataFixerUpper dimension serialization logic
COMMENT to interact with Minecraft NBTs.</p> COMMENT to interact with Minecraft NBTs.
COMMENT COMMENT
COMMENT @see NbtOps#INSTANCE COMMENT @see NbtOps#INSTANCE
FIELD field_11560 INSTANCE Lnet/minecraft/class_2509; FIELD field_11560 INSTANCE Lnet/minecraft/class_2509;
@ -17,7 +17,7 @@ CLASS net/minecraft/class_2509 net/minecraft/nbt/NbtOps
COMMENT <p>This ops does not compress maps (replace field name to value pairs COMMENT <p>This ops does not compress maps (replace field name to value pairs
COMMENT with an ordered list of values in serialization). In fact, since COMMENT with an ordered list of values in serialization). In fact, since
COMMENT Minecraft NBT lists can only contain elements of the same type, this op COMMENT Minecraft NBT lists can only contain elements of the same type, this op
COMMENT cannot compress maps.</p> COMMENT cannot compress maps.
METHOD convertTo (Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Ljava/lang/Object; METHOD convertTo (Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Ljava/lang/Object;
ARG 2 element ARG 2 element
METHOD createBoolean (Z)Ljava/lang/Object; METHOD createBoolean (Z)Ljava/lang/Object;

View File

@ -2,15 +2,15 @@ CLASS net/minecraft/class_1713 net/minecraft/screen/slot/SlotActionType
FIELD field_7789 QUICK_CRAFT Lnet/minecraft/class_1713; FIELD field_7789 QUICK_CRAFT Lnet/minecraft/class_1713;
COMMENT Drags items between multiple slots. This is usually triggered by the player clicking and dragging between slots. COMMENT Drags items between multiple slots. This is usually triggered by the player clicking and dragging between slots.
COMMENT COMMENT
COMMENT <p>This action happens in 3 stages. Stage 0 signals that the drag has begun, and stage 2 signals that the drag has ended. In between multiple stage 1s signal which slots were dragged on.</p> COMMENT <p>This action happens in 3 stages. Stage 0 signals that the drag has begun, and stage 2 signals that the drag has ended. In between multiple stage 1s signal which slots were dragged on.
COMMENT COMMENT
COMMENT <p>The stage is packed into the click data along with the mouse button that was clicked. See {@link net.minecraft.screen.ScreenHandler#packQuickCraftData(int, int) ScreenHandler.packQuickCraftData(int, int)} for details.</p> COMMENT <p>The stage is packed into the click data along with the mouse button that was clicked. See {@link net.minecraft.screen.ScreenHandler#packQuickCraftData(int, int) ScreenHandler.packQuickCraftData(int, int)} for details.
FIELD field_7790 PICKUP Lnet/minecraft/class_1713; FIELD field_7790 PICKUP Lnet/minecraft/class_1713;
COMMENT Performs a normal slot click. This can pickup or place items in the slot, possibly merging the cursor stack into the slot, or swapping the slot stack with the cursor stack if they can't be merged. COMMENT Performs a normal slot click. This can pickup or place items in the slot, possibly merging the cursor stack into the slot, or swapping the slot stack with the cursor stack if they can't be merged.
FIELD field_7791 SWAP Lnet/minecraft/class_1713; FIELD field_7791 SWAP Lnet/minecraft/class_1713;
COMMENT Exchanges items between a slot and a hotbar slot. This is usually triggered by the player pressing a 1-9 number key while hovering over a slot. COMMENT Exchanges items between a slot and a hotbar slot. This is usually triggered by the player pressing a 1-9 number key while hovering over a slot.
COMMENT COMMENT
COMMENT <p>When the action type is swap, the click data is the hotbar slot to swap with (0-8).</p> COMMENT <p>When the action type is swap, the click data is the hotbar slot to swap with (0-8).
FIELD field_7793 PICKUP_ALL Lnet/minecraft/class_1713; FIELD field_7793 PICKUP_ALL Lnet/minecraft/class_1713;
COMMENT Replenishes the cursor stack with items from the screen handler. This is usually triggered by the player double clicking. COMMENT Replenishes the cursor stack with items from the screen handler. This is usually triggered by the player double clicking.
FIELD field_7794 QUICK_MOVE Lnet/minecraft/class_1713; FIELD field_7794 QUICK_MOVE Lnet/minecraft/class_1713;
@ -18,6 +18,6 @@ CLASS net/minecraft/class_1713 net/minecraft/screen/slot/SlotActionType
FIELD field_7795 THROW Lnet/minecraft/class_1713; FIELD field_7795 THROW Lnet/minecraft/class_1713;
COMMENT Throws the item out of the inventory. This is usually triggered by the player pressing Q while hovering over a slot, or clicking outside the window. COMMENT Throws the item out of the inventory. This is usually triggered by the player pressing Q while hovering over a slot, or clicking outside the window.
COMMENT COMMENT
COMMENT <p>When the action type is throw, the click data determines whether to throw a whole stack (1) or a single item from that stack (0).</p> COMMENT <p>When the action type is throw, the click data determines whether to throw a whole stack (1) or a single item from that stack (0).
FIELD field_7796 CLONE Lnet/minecraft/class_1713; FIELD field_7796 CLONE Lnet/minecraft/class_1713;
COMMENT Clones the item in the slot. Usually triggered by middle clicking an item in creative mode. COMMENT Clones the item in the slot. Usually triggered by middle clicking an item in creative mode.

View File

@ -2,7 +2,7 @@ CLASS net/minecraft/class_5169 net/minecraft/server/dedicated/ServerMBean
COMMENT A dynamic management object for a Minecraft Server. COMMENT A dynamic management object for a Minecraft Server.
COMMENT COMMENT
COMMENT <p>It exposes the average tick time and the historical tick times of the COMMENT <p>It exposes the average tick time and the historical tick times of the
COMMENT Minecraft Server.</p> COMMENT Minecraft Server.
COMMENT COMMENT
COMMENT @see javax.management.DynamicMBean COMMENT @see javax.management.DynamicMBean
FIELD field_23970 LOGGER Lorg/apache/logging/log4j/Logger; FIELD field_23970 LOGGER Lorg/apache/logging/log4j/Logger;

View File

@ -9,7 +9,7 @@ CLASS net/minecraft/class_2158 net/minecraft/server/function/CommandFunction
METHOD method_9195 create (Lnet/minecraft/class_2960;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_2168;Ljava/util/List;)Lnet/minecraft/class_2158; METHOD method_9195 create (Lnet/minecraft/class_2960;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_2168;Ljava/util/List;)Lnet/minecraft/class_2158;
COMMENT Parses a function in the context of {@code source}. COMMENT Parses a function in the context of {@code source}.
COMMENT COMMENT
COMMENT <p>Any syntax errors, such as improper comment lines or unknown commands, will be thrown at this point.</p> COMMENT <p>Any syntax errors, such as improper comment lines or unknown commands, will be thrown at this point.
ARG 0 id ARG 0 id
ARG 1 dispatcher ARG 1 dispatcher
ARG 2 source ARG 2 source

View File

@ -4,7 +4,7 @@ CLASS net/minecraft/class_5224 net/minecraft/text/CharacterVisitor
COMMENT Visits a single character. COMMENT Visits a single character.
COMMENT COMMENT
COMMENT <p>Multiple surrogate characters are converted into one single {@code COMMENT <p>Multiple surrogate characters are converted into one single {@code
COMMENT codePoint} when passed into this method.</p> COMMENT codePoint} when passed into this method.
COMMENT COMMENT
COMMENT @return {@code true} to continue visiting other characters, or {@code false} to terminate the visit COMMENT @return {@code true} to continue visiting other characters, or {@code false} to terminate the visit
ARG 1 index ARG 1 index

View File

@ -47,7 +47,7 @@ CLASS net/minecraft/class_5348 net/minecraft/text/StringVisitable
COMMENT COMMENT
COMMENT <p>When a {@link Optional#isPresent() present optional} is returned, COMMENT <p>When a {@link Optional#isPresent() present optional} is returned,
COMMENT the visit is terminated before visiting all text. Can return {@link COMMENT the visit is terminated before visiting all text. Can return {@link
COMMENT StringVisitable#TERMINATE_VISIT} for convenience.</p> COMMENT StringVisitable#TERMINATE_VISIT} for convenience.
COMMENT COMMENT
COMMENT @return {@code Optional.empty()} to continue, a non-empty result to terminate COMMENT @return {@code Optional.empty()} to continue, a non-empty result to terminate
ARG 1 asString ARG 1 asString
@ -59,11 +59,11 @@ CLASS net/minecraft/class_5348 net/minecraft/text/StringVisitable
COMMENT COMMENT
COMMENT <p>A contextual style is obtained by calling {@link Style#withParent(Style)} COMMENT <p>A contextual style is obtained by calling {@link Style#withParent(Style)}
COMMENT on the current's text style, passing the previous contextual style or COMMENT on the current's text style, passing the previous contextual style or
COMMENT the starting style if it is the beginning of a visit.</p> COMMENT the starting style if it is the beginning of a visit.
COMMENT COMMENT
COMMENT <p>When a {@link Optional#isPresent() present optional} is returned, COMMENT <p>When a {@link Optional#isPresent() present optional} is returned,
COMMENT the visit is terminated before visiting all text. Can return {@link COMMENT the visit is terminated before visiting all text. Can return {@link
COMMENT StringVisitable#TERMINATE_VISIT} for convenience.</p> COMMENT StringVisitable#TERMINATE_VISIT} for convenience.
COMMENT COMMENT
COMMENT @return {@code Optional.empty()} to continue, a non-empty result to terminate COMMENT @return {@code Optional.empty()} to continue, a non-empty result to terminate
ARG 1 style ARG 1 style

View File

@ -2,7 +2,7 @@ CLASS net/minecraft/class_2583 net/minecraft/text/Style
COMMENT The style of a {@link Text}, representing cosmetic attributes. It includes COMMENT The style of a {@link Text}, representing cosmetic attributes. It includes
COMMENT font, formatting, click/hover events (actions), color, etc. COMMENT font, formatting, click/hover events (actions), color, etc.
COMMENT COMMENT
COMMENT <p>A style is immutable.</p> COMMENT <p>A style is immutable.
COMMENT COMMENT
COMMENT @see Text COMMENT @see Text
FIELD field_11851 underlined Ljava/lang/Boolean; FIELD field_11851 underlined Ljava/lang/Boolean;
@ -41,7 +41,7 @@ CLASS net/minecraft/class_2583 net/minecraft/text/Style
COMMENT Returns the insertion text of the style. COMMENT Returns the insertion text of the style.
COMMENT COMMENT
COMMENT <p>An insertion is inserted when a piece of text clicked while shift key COMMENT <p>An insertion is inserted when a piece of text clicked while shift key
COMMENT is down in the chat HUD.</p> COMMENT is down in the chat HUD.
METHOD method_10958 withClickEvent (Lnet/minecraft/class_2558;)Lnet/minecraft/class_2583; METHOD method_10958 withClickEvent (Lnet/minecraft/class_2558;)Lnet/minecraft/class_2583;
COMMENT Returns a new style with the click event provided and all other COMMENT Returns a new style with the click event provided and all other
COMMENT attributes of this style. COMMENT attributes of this style.
@ -128,7 +128,7 @@ CLASS net/minecraft/class_2583 net/minecraft/text/Style
COMMENT COMMENT
COMMENT <p>When a color formatting is passed for {@code formatting}, the other COMMENT <p>When a color formatting is passed for {@code formatting}, the other
COMMENT formattings, including bold, italic, strikethrough, underlined, and COMMENT formattings, including bold, italic, strikethrough, underlined, and
COMMENT obfuscated, are all removed.</p> COMMENT obfuscated, are all removed.
ARG 1 formatting ARG 1 formatting
COMMENT the new formatting COMMENT the new formatting
METHOD method_27708 getFont ()Lnet/minecraft/class_2960; METHOD method_27708 getFont ()Lnet/minecraft/class_2960;

View File

@ -3,10 +3,10 @@ CLASS net/minecraft/class_2561 net/minecraft/text/Text
COMMENT COMMENT
COMMENT <p>Each text has a tree structure, embodying all its {@link COMMENT <p>Each text has a tree structure, embodying all its {@link
COMMENT #getSiblings() siblings}. To iterate contents in the text and all COMMENT #getSiblings() siblings}. To iterate contents in the text and all
COMMENT its siblings, call {@code visit} methods.</p> COMMENT its siblings, call {@code visit} methods.
COMMENT COMMENT
COMMENT <p>This interface does not expose mutation operations. For mutation, COMMENT <p>This interface does not expose mutation operations. For mutation,
COMMENT refer to {@link MutableText}.</p> COMMENT refer to {@link MutableText}.
COMMENT COMMENT
COMMENT @see MutableText COMMENT @see MutableText
METHOD method_10851 asString ()Ljava/lang/String; METHOD method_10851 asString ()Ljava/lang/String;
@ -39,7 +39,7 @@ CLASS net/minecraft/class_2561 net/minecraft/text/Text
METHOD method_27661 shallowCopy ()Lnet/minecraft/class_5250; METHOD method_27661 shallowCopy ()Lnet/minecraft/class_5250;
COMMENT Copies the text itself, the style, and the siblings. COMMENT Copies the text itself, the style, and the siblings.
COMMENT COMMENT
COMMENT <p>A shallow copy is made for the siblings.</p> COMMENT <p>A shallow copy is made for the siblings.
METHOD method_27662 copy ()Lnet/minecraft/class_5250; METHOD method_27662 copy ()Lnet/minecraft/class_5250;
COMMENT Copies the text itself, excluding the styles or siblings. COMMENT Copies the text itself, excluding the styles or siblings.
METHOD method_30163 of (Ljava/lang/String;)Lnet/minecraft/class_2561; METHOD method_30163 of (Ljava/lang/String;)Lnet/minecraft/class_2561;

View File

@ -1,7 +1,7 @@
CLASS net/minecraft/class_5251 net/minecraft/text/TextColor CLASS net/minecraft/class_5251 net/minecraft/text/TextColor
COMMENT Represents an RGB color of a {@link Text}. COMMENT Represents an RGB color of a {@link Text}.
COMMENT COMMENT
COMMENT <p>This is immutable, and part of a {@link Style}.</p> COMMENT <p>This is immutable, and part of a {@link Style}.
COMMENT COMMENT
COMMENT @see Style COMMENT @see Style
FIELD field_24362 FORMATTING_TO_COLOR Ljava/util/Map; FIELD field_24362 FORMATTING_TO_COLOR Ljava/util/Map;
@ -18,7 +18,7 @@ CLASS net/minecraft/class_5251 net/minecraft/text/TextColor
COMMENT Gets the RGB value of this color. COMMENT Gets the RGB value of this color.
COMMENT COMMENT
COMMENT <p>The red bits can be obtained by {@code (rgb >> 16) & 0xFF}, green bits COMMENT <p>The red bits can be obtained by {@code (rgb >> 16) & 0xFF}, green bits
COMMENT by {@code (rgb >> 8) & 0xFF}, blue bits by {@code rgb & 0xFF}.</p> COMMENT by {@code (rgb >> 8) & 0xFF}, blue bits by {@code rgb & 0xFF}.
METHOD method_27717 fromRgb (I)Lnet/minecraft/class_5251; METHOD method_27717 fromRgb (I)Lnet/minecraft/class_5251;
COMMENT Obtains a text color from an RGB value. COMMENT Obtains a text color from an RGB value.
ARG 0 rgb ARG 0 rgb

View File

@ -8,8 +8,8 @@ CLASS net/minecraft/class_2960 net/minecraft/util/Identifier
FIELD field_33381 DEFAULT_NAMESPACE Ljava/lang/String; FIELD field_33381 DEFAULT_NAMESPACE Ljava/lang/String;
FIELD field_33382 REALMS_NAMESPACE Ljava/lang/String; FIELD field_33382 REALMS_NAMESPACE Ljava/lang/String;
METHOD <init> (Ljava/lang/String;)V METHOD <init> (Ljava/lang/String;)V
COMMENT <p>Takes a string of the form {@code <namespace>:<path>}, for example {@code minecraft:iron_ingot}.</p> COMMENT <p>Takes a string of the form {@code <namespace>:<path>}, for example {@code minecraft:iron_ingot}.
COMMENT <p>The string will be split (on the {@code :}) into an identifier with the specified path and namespace.</p> COMMENT <p>The string will be split (on the {@code :}) into an identifier with the specified path and namespace.
COMMENT Prefer using the {@link net.minecraft.util.Identifier#Identifier(java.lang.String, java.lang.String) Identifier(java.lang.String, java.lang.String)} constructor that takes the namespace and path as individual parameters to avoid mistakes. COMMENT Prefer using the {@link net.minecraft.util.Identifier#Identifier(java.lang.String, java.lang.String) Identifier(java.lang.String, java.lang.String)} constructor that takes the namespace and path as individual parameters to avoid mistakes.
COMMENT @throws InvalidIdentifierException if the string cannot be parsed as an identifier. COMMENT @throws InvalidIdentifierException if the string cannot be parsed as an identifier.
ARG 1 id ARG 1 id
@ -23,7 +23,7 @@ CLASS net/minecraft/class_2960 net/minecraft/util/Identifier
METHOD equals (Ljava/lang/Object;)Z METHOD equals (Ljava/lang/Object;)Z
ARG 1 other ARG 1 other
METHOD method_12829 tryParse (Ljava/lang/String;)Lnet/minecraft/class_2960; METHOD method_12829 tryParse (Ljava/lang/String;)Lnet/minecraft/class_2960;
COMMENT <p>Parses a string into an {@code Identifier}.</p> COMMENT <p>Parses a string into an {@code Identifier}.
COMMENT Takes a string of the form {@code <namespace>:<path>}, for example {@code minecraft:iron_ingot}. COMMENT Takes a string of the form {@code <namespace>:<path>}, for example {@code minecraft:iron_ingot}.
COMMENT @return resulting identifier, or {@code null} if the string couldn't be parsed as an identifier COMMENT @return resulting identifier, or {@code null} if the string couldn't be parsed as an identifier
ARG 0 id ARG 0 id

View File

@ -11,7 +11,7 @@ CLASS net/minecraft/class_5330 net/minecraft/util/JsonSerializing
COMMENT COMMENT
COMMENT <p>When the root element read is an object, the handler obtains the type COMMENT <p>When the root element read is an object, the handler obtains the type
COMMENT from registry to handle reading; otherwise, it falls back to custom COMMENT from registry to handle reading; otherwise, it falls back to custom
COMMENT logic.</p> COMMENT logic.
FIELD field_25192 registry Lnet/minecraft/class_2378; FIELD field_25192 registry Lnet/minecraft/class_2378;
FIELD field_25193 rootFieldName Ljava/lang/String; FIELD field_25193 rootFieldName Ljava/lang/String;
FIELD field_25194 idFieldName Ljava/lang/String; FIELD field_25194 idFieldName Ljava/lang/String;

View File

@ -3,7 +3,7 @@ CLASS net/minecraft/class_5380 net/minecraft/util/dynamic/RegistryCodec
COMMENT COMMENT
COMMENT <p>Compared to regular codec, this codec performs additional work when COMMENT <p>Compared to regular codec, this codec performs additional work when
COMMENT decoding, loading its elements from the given resource manager's JSON COMMENT decoding, loading its elements from the given resource manager's JSON
COMMENT files.</p> COMMENT files.
COMMENT COMMENT
COMMENT @param <E> the registry's element type COMMENT @param <E> the registry's element type
COMMENT @see RegistryElementCodec COMMENT @see RegistryElementCodec

View File

@ -4,7 +4,7 @@ CLASS net/minecraft/class_5381 net/minecraft/util/dynamic/RegistryElementCodec
COMMENT decoding behavior if it cannot do so. COMMENT decoding behavior if it cannot do so.
COMMENT COMMENT
COMMENT <p>The codec's saves and loads {@code Supplier<E>} in order to avoid early COMMENT <p>The codec's saves and loads {@code Supplier<E>} in order to avoid early
COMMENT loading from registry before a registry is fully loaded from a codec.</p> COMMENT loading from registry before a registry is fully loaded from a codec.
COMMENT COMMENT
COMMENT @param <E> the element type COMMENT @param <E> the element type
COMMENT @see RegistryCodec COMMENT @see RegistryCodec

View File

@ -20,7 +20,7 @@ CLASS net/minecraft/class_5382 net/minecraft/util/dynamic/RegistryOps
COMMENT Encode an id for a registry element than a full object if possible. COMMENT Encode an id for a registry element than a full object if possible.
COMMENT COMMENT
COMMENT <p>This method is called by casting an arbitrary dynamic ops to a registry COMMENT <p>This method is called by casting an arbitrary dynamic ops to a registry
COMMENT reading ops.</p> COMMENT reading ops.
COMMENT COMMENT
COMMENT @see RegistryReadingOps#encodeOrId(Object, Object, RegistryKey, Codec) COMMENT @see RegistryReadingOps#encodeOrId(Object, Object, RegistryKey, Codec)
ARG 2 key ARG 2 key
@ -31,7 +31,7 @@ CLASS net/minecraft/class_5382 net/minecraft/util/dynamic/RegistryOps
METHOD method_29763 readSupplier (Lnet/minecraft/class_5321;Lnet/minecraft/class_2385;Lcom/mojang/serialization/Codec;Lnet/minecraft/class_2960;)Lcom/mojang/serialization/DataResult; METHOD method_29763 readSupplier (Lnet/minecraft/class_5321;Lnet/minecraft/class_2385;Lcom/mojang/serialization/Codec;Lnet/minecraft/class_2960;)Lcom/mojang/serialization/DataResult;
COMMENT Reads a supplier for a registry element. COMMENT Reads a supplier for a registry element.
COMMENT COMMENT
COMMENT <p>This logic is used by both {@code decodeOrId} and {@code loadToRegistry}.</p> COMMENT <p>This logic is used by both {@code decodeOrId} and {@code loadToRegistry}.
ARG 1 key ARG 1 key
ARG 2 registry ARG 2 registry
ARG 3 codec ARG 3 codec

View File

@ -13,7 +13,7 @@ CLASS net/minecraft/class_5384 net/minecraft/util/dynamic/RegistryReadingOps
COMMENT Encode an id for a registry element than a full object if possible. COMMENT Encode an id for a registry element than a full object if possible.
COMMENT COMMENT
COMMENT <p>This method is called by casting an arbitrary dynamic ops to a registry COMMENT <p>This method is called by casting an arbitrary dynamic ops to a registry
COMMENT reading ops.</p> COMMENT reading ops.
COMMENT COMMENT
COMMENT @see RegistryOps#decodeOrId(Object, RegistryKey, Codec, boolean) COMMENT @see RegistryOps#decodeOrId(Object, RegistryKey, Codec, boolean)
ARG 1 input ARG 1 input

View File

@ -137,7 +137,7 @@ CLASS net/minecraft/class_3532 net/minecraft/util/math/MathHelper
METHOD method_15388 stepUnwrappedAngleTowards (FFF)F METHOD method_15388 stepUnwrappedAngleTowards (FFF)F
COMMENT Steps from {@code from} degrees towards {@code to} degrees, changing the value by at most {@code step} degrees. COMMENT Steps from {@code from} degrees towards {@code to} degrees, changing the value by at most {@code step} degrees.
COMMENT COMMENT
COMMENT <p>This method does not wrap the resulting angle, so {@link #stepAngleTowards(float, float, float)} should be used in preference.</p> COMMENT <p>This method does not wrap the resulting angle, so {@link #stepAngleTowards(float, float, float)} should be used in preference.
ARG 0 from ARG 0 from
ARG 1 to ARG 1 to
ARG 2 step ARG 2 step

View File

@ -4,11 +4,11 @@ CLASS net/minecraft/class_5455 net/minecraft/util/registry/DynamicRegistryManage
COMMENT COMMENT
COMMENT <p>Each minecraft server has a dynamic registry manager for file-loaded COMMENT <p>Each minecraft server has a dynamic registry manager for file-loaded
COMMENT registries, while each client play network handler has a dynamic registry COMMENT registries, while each client play network handler has a dynamic registry
COMMENT manager for server-sent dynamic registries.</p> COMMENT manager for server-sent dynamic registries.
COMMENT COMMENT
COMMENT <p>The {@link DynamicRegistryManager.Impl} COMMENT <p>The {@link DynamicRegistryManager.Impl}
COMMENT class serves as an immutable implementation of any particular collection COMMENT class serves as an immutable implementation of any particular collection
COMMENT or configuration of dynamic registries.</p> COMMENT or configuration of dynamic registries.
FIELD field_25918 LOGGER Lorg/apache/logging/log4j/Logger; FIELD field_25918 LOGGER Lorg/apache/logging/log4j/Logger;
FIELD field_25919 INFOS Ljava/util/Map; FIELD field_25919 INFOS Ljava/util/Map;
FIELD field_26733 BUILTIN Lnet/minecraft/class_5455$class_5457; FIELD field_26733 BUILTIN Lnet/minecraft/class_5455$class_5457;

View File

@ -15,7 +15,7 @@ CLASS net/minecraft/class_2385 net/minecraft/util/registry/MutableRegistry
COMMENT COMMENT
COMMENT <p>If the given key is not already present in the registry, adds the entry to the registry. If COMMENT <p>If the given key is not already present in the registry, adds the entry to the registry. If
COMMENT {@code rawId} is present, then this method gives the entry this raw ID. Otherwise, uses the COMMENT {@code rawId} is present, then this method gives the entry this raw ID. Otherwise, uses the
COMMENT next available ID.</p> COMMENT next available ID.
ARG 1 rawId ARG 1 rawId
ARG 2 key ARG 2 key
ARG 3 newEntry ARG 3 newEntry

View File

@ -25,7 +25,7 @@ CLASS net/minecraft/class_5321 net/minecraft/util/registry/RegistryKey
COMMENT value. COMMENT value.
COMMENT COMMENT
COMMENT <p>You can call it like {@code RegistryKey.of(Registry.ITEM_KEY, new Identifier("iron_ingot"))} COMMENT <p>You can call it like {@code RegistryKey.of(Registry.ITEM_KEY, new Identifier("iron_ingot"))}
COMMENT to create a registry key for iron ingot.</p> COMMENT to create a registry key for iron ingot.
COMMENT COMMENT
COMMENT @param <T> the type of the value COMMENT @param <T> the type of the value
ARG 0 registry ARG 0 registry
@ -37,7 +37,7 @@ CLASS net/minecraft/class_5321 net/minecraft/util/registry/RegistryKey
COMMENT all registries) with an identifier for the registry. COMMENT all registries) with an identifier for the registry.
COMMENT COMMENT
COMMENT <p>You can call it like {@code RegistryKey.of(new Identifier("block"))} COMMENT <p>You can call it like {@code RegistryKey.of(new Identifier("block"))}
COMMENT to create a registry key for the block registry.</p> COMMENT to create a registry key for the block registry.
COMMENT COMMENT
COMMENT @param <T> the element type of the registry COMMENT @param <T> the element type of the registry
ARG 0 registry ARG 0 registry

View File

@ -9,7 +9,7 @@ CLASS net/minecraft/class_1945 net/minecraft/world/ModifiableWorld
COMMENT <p>When called on the server, the new block state is stored and propagated to clients and listeners as dictated COMMENT <p>When called on the server, the new block state is stored and propagated to clients and listeners as dictated
COMMENT by the supplied flags. Note that calling this on the client will update the world locally, but may not see the COMMENT by the supplied flags. Note that calling this on the client will update the world locally, but may not see the
COMMENT change persisted across loads. It's recommended to check whether this world is client before COMMENT change persisted across loads. It's recommended to check whether this world is client before
COMMENT interacting with the world in this way.</p> COMMENT interacting with the world in this way.
COMMENT COMMENT
COMMENT <p>See {@link #setBlockState(BlockPos, BlockState, int)} for a list of accepted flags. COMMENT <p>See {@link #setBlockState(BlockPos, BlockState, int)} for a list of accepted flags.
ARG 1 pos ARG 1 pos
@ -40,7 +40,7 @@ CLASS net/minecraft/class_1945 net/minecraft/world/ModifiableWorld
COMMENT <p>When called on the server, the new block state is stored and propagated to clients and listeners as dictated COMMENT <p>When called on the server, the new block state is stored and propagated to clients and listeners as dictated
COMMENT by the supplied flags. Note that calling this on the client will update the world locally, but may not see the COMMENT by the supplied flags. Note that calling this on the client will update the world locally, but may not see the
COMMENT change persisted across loads. It's recommended to check whether this world is client before COMMENT change persisted across loads. It's recommended to check whether this world is client before
COMMENT interacting with the world in this way.</p> COMMENT interacting with the world in this way.
COMMENT COMMENT
COMMENT <p>The accepted values of these flags are: COMMENT <p>The accepted values of these flags are:
COMMENT <ul> COMMENT <ul>

View File

@ -7,7 +7,7 @@ CLASS net/minecraft/class_2919 net/minecraft/world/gen/ChunkRandom
COMMENT and the bedrock patterns. COMMENT and the bedrock patterns.
COMMENT COMMENT
COMMENT <p>Note that the terrain seed does not depend on the world seed and only gets affected by COMMENT <p>Note that the terrain seed does not depend on the world seed and only gets affected by
COMMENT chunk coordinates.</p> COMMENT chunk coordinates.
ARG 1 chunkX ARG 1 chunkX
ARG 2 chunkZ ARG 2 chunkZ
METHOD method_12661 setPopulationSeed (JII)J METHOD method_12661 setPopulationSeed (JII)J
@ -16,12 +16,12 @@ CLASS net/minecraft/class_2919 net/minecraft/world/gen/ChunkRandom
COMMENT <p>This method takes in the world seed and the negative-most block coordinates of the COMMENT <p>This method takes in the world seed and the negative-most block coordinates of the
COMMENT chunk. The coordinate pair provided is equivalent to (chunkX * 16, chunkZ * 16). The COMMENT chunk. The coordinate pair provided is equivalent to (chunkX * 16, chunkZ * 16). The
COMMENT three values are mixed together through some layers of hashing to produce the COMMENT three values are mixed together through some layers of hashing to produce the
COMMENT population seed.</p> COMMENT population seed.
COMMENT COMMENT
COMMENT <p>This function has been proved to be reversible through some exploitation of the underlying COMMENT <p>This function has been proved to be reversible through some exploitation of the underlying
COMMENT nextLong() weaknesses. It is also important to remember that since setSeed() COMMENT nextLong() weaknesses. It is also important to remember that since setSeed()
COMMENT truncates the 16 upper bits of world seed, only the 48 lowest bits affect the population COMMENT truncates the 16 upper bits of world seed, only the 48 lowest bits affect the population
COMMENT seed output.</p> COMMENT seed output.
ARG 1 worldSeed ARG 1 worldSeed
ARG 3 blockX ARG 3 blockX
ARG 4 blockZ ARG 4 blockZ
@ -35,7 +35,7 @@ CLASS net/minecraft/class_2919 net/minecraft/world/gen/ChunkRandom
COMMENT and strongholds. It is also used to initiate structure start behavior such as rotation. COMMENT and strongholds. It is also used to initiate structure start behavior such as rotation.
COMMENT COMMENT
COMMENT <p>Similar to the population seed, only the 48 lowest bits of the world seed affect the COMMENT <p>Similar to the population seed, only the 48 lowest bits of the world seed affect the
COMMENT output since it the upper 16 bits are truncated in the setSeed() call.</p> COMMENT output since it the upper 16 bits are truncated in the setSeed() call.
ARG 1 worldSeed ARG 1 worldSeed
ARG 3 chunkX ARG 3 chunkX
ARG 4 chunkZ ARG 4 chunkZ
@ -58,10 +58,10 @@ CLASS net/minecraft/class_2919 net/minecraft/world/gen/ChunkRandom
COMMENT COMMENT
COMMENT <p>The region coordinates pair corresponds to the coordinates of the region the seeded COMMENT <p>The region coordinates pair corresponds to the coordinates of the region the seeded
COMMENT chunk lies in. For example, a swamp hut region is 32 by 32 chunks meaning that all COMMENT chunk lies in. For example, a swamp hut region is 32 by 32 chunks meaning that all
COMMENT chunks that lie within that region get seeded the same way.</p> COMMENT chunks that lie within that region get seeded the same way.
COMMENT COMMENT
COMMENT <p>Similarly, the upper 16 bits of world seed also do not affect the region seed because COMMENT <p>Similarly, the upper 16 bits of world seed also do not affect the region seed because
COMMENT they get truncated in the setSeed() call.</p> COMMENT they get truncated in the setSeed() call.
ARG 1 worldSeed ARG 1 worldSeed
ARG 3 regionX ARG 3 regionX
ARG 4 regionZ ARG 4 regionZ

View File

@ -35,7 +35,7 @@ CLASS net/minecraft/class_5818 net/minecraft/world/gen/NoiseColumnSampler
ARG 3 y ARG 3 y
METHOD method_33646 getOffset (IDDD)D METHOD method_33646 getOffset (IDDD)D
COMMENT Calculates an offset for the noise. COMMENT Calculates an offset for the noise.
COMMENT <p>For example in the overworld, this makes lower y values solid while making higher y values air.</p> COMMENT <p>For example in the overworld, this makes lower y values solid while making higher y values air.
ARG 1 y ARG 1 y
ARG 2 depth ARG 2 depth
ARG 4 scale ARG 4 scale

View File

@ -25,7 +25,7 @@ CLASS net/minecraft/class_5817 net/minecraft/world/gen/StructureWeightSampler
ARG 2 z ARG 2 z
METHOD method_33642 calculateStructureWeight (III)D METHOD method_33642 calculateStructureWeight (III)D
COMMENT Calculates the structure weight for the given position. COMMENT Calculates the structure weight for the given position.
COMMENT <p>The weight increases as x and z approach {@code (0, 0)}, and positive y values make the weight negative while negative y values make the weight positive.</p> COMMENT <p>The weight increases as x and z approach {@code (0, 0)}, and positive y values make the weight negative while negative y values make the weight positive.
ARG 0 x ARG 0 x
ARG 1 y ARG 1 y
ARG 2 z ARG 2 z