22w18a misc (#3149)

This commit is contained in:
apple502j 2022-05-13 02:28:22 +09:00 committed by GitHub
parent ee2512d6e0
commit 288e0c3ed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 65 additions and 39 deletions

View File

@ -35,7 +35,7 @@ CLASS net/minecraft/class_2244 net/minecraft/block/BedBlock
COMMENT {@return whether the world's {@linkplain net.minecraft.world.dimension.DimensionType dimension type}
COMMENT allows beds to be respawned at and slept in without exploding}
COMMENT
COMMENT @see net.minecraft.world.dimension.DimensionType#isBedWorking()
COMMENT @see net.minecraft.world.dimension.DimensionType#bedWorks
ARG 0 world
METHOD method_30835 findWakeUpPosition (Lnet/minecraft/class_1299;Lnet/minecraft/class_1941;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2350;)Ljava/util/Optional;
ARG 0 type

View File

@ -231,7 +231,7 @@ CLASS net/minecraft/class_7172 net/minecraft/client/option/SimpleOption
METHOD method_41758 validate (Ljava/lang/Object;)Ljava/util/Optional;
COMMENT {@return the validated value}
COMMENT
COMMENT <p>Returning {@link Optional.empty()} indicates the passed value is invalid and it
COMMENT <p>Returning {@link Optional#empty()} indicates the passed value is invalid and it
COMMENT should reset to the default value. This method can also coerce the invalid value
COMMENT into a valid one by clamping, etc.
ARG 1 value

View File

@ -20,11 +20,11 @@ CLASS net/minecraft/class_7157 net/minecraft/command/CommandRegistryAccess
ARG 1 registryRef
COMMENT the registry key of the registry to wrap
CLASS class_7158 EntryListCreationPolicy
COMMENT A policy on how to handle a {@link TagKey} that does not resolve to an existing
COMMENT tag (unrecognized tag) in {@link CommandRegistryWrapper#getEntryList}.
COMMENT A policy on how to handle a {@link net.minecraft.tag.TagKey} that does not resolve
COMMENT to an existing tag (unrecognized tag) in {@link CommandRegistryWrapper#getEntryList}.
FIELD field_37824 Lnet/minecraft/class_7157$class_7158;
COMMENT Creates a new {@link RegistryEntryList}, stores it and returns it.
COMMENT Creates a new {@link net.minecraft.util.registry.RegistryEntryList}, stores it and returns it.
FIELD field_37825 Lnet/minecraft/class_7157$class_7158;
COMMENT Returns a new, empty {@link RegistryEntryList} every time.
COMMENT Returns a new, empty {@link net.minecraft.util.registry.RegistryEntryList} every time.
FIELD field_37826 Lnet/minecraft/class_7157$class_7158;
COMMENT Returns {@link Optional.empty()}.
COMMENT Returns {@link Optional#empty()}.

View File

@ -4,7 +4,7 @@ CLASS net/minecraft/class_7225 net/minecraft/command/CommandRegistryWrapper
COMMENT <p>The methods in this class in most cases perform the same as ones defined
COMMENT in {@link Registry}. However, subclasses may have slightly different behaviors
COMMENT to make it easier to handle user-passed arguments. For example, {@link #getEntryList(TagKey)}
COMMENT may return an empty {@link RegistryEntryList} instead of {@link Optional.empty()}.
COMMENT may return an empty {@link RegistryEntryList} instead of {@link Optional#empty()}.
COMMENT
COMMENT <p>A wrapper without any special behaviors can be created by calling {#link of(Registry)}.
METHOD method_41700 getEntryList (Lnet/minecraft/class_6862;)Ljava/util/Optional;
@ -12,7 +12,7 @@ CLASS net/minecraft/class_7225 net/minecraft/command/CommandRegistryWrapper
COMMENT
COMMENT <p>Implementations have different behaviors for unrecognized tags. The
COMMENT {@linkplain CommandRegistryWrapper.Impl#getEntryList default implementation}
COMMENT returns {@link Optional.empty()}; however, the ones created by
COMMENT returns {@link Optional#empty()}; however, the ones created by
COMMENT {@link CommandRegistryAccess#createWrapper} can create and return a new entry list, or
COMMENT return an empty entry list.
COMMENT

View File

@ -1,8 +1,10 @@
CLASS net/minecraft/class_7079 net/minecraft/command/argument/RegistryKeyArgumentType
FIELD field_37269 EXAMPLES Ljava/util/Collection;
FIELD field_37270 UNKNOWN_ATTRIBUTE_EXCEPTION Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
FIELD field_37271 INVALID_CONFIGURED_FEATURE_EXCEPTION Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
FIELD field_37271 INVALID_FEATURE_EXCEPTION Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
FIELD field_37272 registryRef Lnet/minecraft/class_5321;
FIELD field_39191 INVALID_STRUCTURE_EXCEPTION Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
FIELD field_39192 INVALID_JIGSAW_EXCEPTION Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
METHOD <init> (Lnet/minecraft/class_5321;)V
ARG 1 registryRef
METHOD listSuggestions (Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
@ -28,6 +30,21 @@ CLASS net/minecraft/class_7079 net/minecraft/command/argument/RegistryKeyArgumen
ARG 1 name
METHOD method_41226 (Ljava/lang/Object;)Lcom/mojang/brigadier/Message;
ARG 0 id
METHOD method_43776 (Ljava/lang/Object;)Lcom/mojang/brigadier/Message;
ARG 0 id
METHOD method_43777 getRegistryEntry (Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_5321;Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;)Lnet/minecraft/class_6880;
ARG 0 context
ARG 1 name
ARG 2 registryRef
ARG 3 invalidException
METHOD method_43778 (Ljava/lang/Object;)Lcom/mojang/brigadier/Message;
ARG 0 id
METHOD method_43779 getStructureTypeEntry (Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;
ARG 0 context
ARG 1 name
METHOD method_43780 getStructurePoolEntry (Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_6880;
ARG 0 context
ARG 1 name
METHOD parse (Lcom/mojang/brigadier/StringReader;)Ljava/lang/Object;
ARG 1 reader
CLASS class_7080 Serializer

View File

@ -193,7 +193,7 @@ CLASS net/minecraft/class_1309 net/minecraft/entity/LivingEntity
COMMENT
COMMENT <p>To control the details of experience dropping, consider overriding
COMMENT {@link #shouldAlwaysDropXp()}, {@link #shouldDropXp()}, and
COMMENT {@link #getXpToDrop(PlayerEntity)}.
COMMENT {@link #getXpToDrop()}.
METHOD method_24518 isHolding (Lnet/minecraft/class_1792;)Z
COMMENT Checks if this entity is holding a certain item.
COMMENT
@ -447,7 +447,7 @@ CLASS net/minecraft/class_1309 net/minecraft/entity/LivingEntity
COMMENT
COMMENT @see #dropXp()
COMMENT @see #shouldAlwaysDropXp()
COMMENT @see #getXpToDrop(PlayerEntity)
COMMENT @see #getXpToDrop()
METHOD method_6055 getHandSwingProgress (F)F
ARG 1 tickDelta
METHOD method_6056 damageShield (F)V
@ -476,7 +476,7 @@ CLASS net/minecraft/class_1309 net/minecraft/entity/LivingEntity
COMMENT other checks.
COMMENT
COMMENT @see #dropXp()
COMMENT @see #getXpToDrop(PlayerEntity)
COMMENT @see #getXpToDrop()
METHOD method_6072 updateLeaningPitch ()V
METHOD method_6073 setAbsorptionAmount (F)V
ARG 1 amount
@ -563,9 +563,6 @@ CLASS net/minecraft/class_1309 net/minecraft/entity/LivingEntity
COMMENT Called when this entity is killed and returns the amount of experience
COMMENT to drop.
COMMENT
COMMENT <p>{@code player} may be {@code null} if {@linkplain #shouldAlwaysDropXp
COMMENT shouldAlwaysDropXp()} returns {@code true}.
COMMENT
COMMENT @see #dropXp()
COMMENT @see #shouldAlwaysDropXp()
COMMENT @see #shouldDropXp()

View File

@ -1,4 +1,7 @@
CLASS net/minecraft/class_192 net/minecraft/loot/condition/LootConditionConsumingBuilder
METHOD method_512 getThis ()Lnet/minecraft/class_192;
METHOD method_43744 conditionally (Ljava/lang/Iterable;Ljava/util/function/Function;)Lnet/minecraft/class_192;
ARG 1 conditions
ARG 2 toBuilderFunction
METHOD method_512 getThisConditionConsumingBuilder ()Lnet/minecraft/class_192;
METHOD method_840 conditionally (Lnet/minecraft/class_5341$class_210;)Lnet/minecraft/class_192;
ARG 1 condition

View File

@ -4,6 +4,9 @@ CLASS net/minecraft/class_65 net/minecraft/loot/entry/AlternativeEntry
METHOD method_387 ([Lnet/minecraft/class_64;Lnet/minecraft/class_47;Ljava/util/function/Consumer;)Z
ARG 1 context
ARG 2 lootChoiceExpander
METHOD method_43734 builder (Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/class_65$class_66;
ARG 0 children
ARG 1 toBuilderFunction
CLASS class_66 Builder
FIELD field_979 children Ljava/util/List;
METHOD <init> ([Lnet/minecraft/class_79$class_80;)V

View File

@ -1,3 +1,10 @@
CLASS net/minecraft/class_116 net/minecraft/loot/function/LootFunctionConsumingBuilder
METHOD method_43732 getThisFunctionConsumingBuilder ()Lnet/minecraft/class_116;
METHOD method_43739 apply (Ljava/lang/Iterable;Ljava/util/function/Function;)Lnet/minecraft/class_116;
ARG 1 functions
ARG 2 toBuilderFunction
METHOD method_43740 apply ([Ljava/lang/Object;Ljava/util/function/Function;)Lnet/minecraft/class_116;
ARG 1 functions
ARG 2 toBuilderFunction
METHOD method_511 apply (Lnet/minecraft/class_117$class_118;)Lnet/minecraft/class_116;
ARG 1 function

View File

@ -4,11 +4,8 @@ CLASS net/minecraft/class_5912 net/minecraft/resource/ResourceFactory
COMMENT Finds and returns the corresponding resource for a resource's identifier.
COMMENT
COMMENT <p>Starts by scanning each resource pack from highest priority to lowest. If no resource packs were found
COMMENT to contain the requested entry, will throw a {@code FileNotFoundException}.
COMMENT to contain the requested entry, will return {@link Optional#empty()}.
COMMENT
COMMENT <p>The returned resource must be closed to avoid resource leaks.
COMMENT
COMMENT @throws java.io.FileNotFoundException if the identified resource could not be found, or could not be loaded.
COMMENT @throws IOException if the identified resource was found but a stream to it could not be opened.
ARG 1 id
COMMENT the resource identifier to search for

View File

@ -23,9 +23,6 @@ CLASS net/minecraft/class_3300 net/minecraft/resource/ResourceManager
COMMENT list is what would be returned normally by {@link #getResource}
COMMENT
COMMENT <p>Each resource in this returned list must be closed to avoid resource leaks.
COMMENT
COMMENT @throws java.io.FileNotFoundException if no matching resources could be found (i.e. if the list would be empty)
COMMENT @throws IOException if resources were found, but any one of them could not be opened to be read.
ARG 1 id
COMMENT the resource identifier to search for
METHOD method_29213 streamResourcePacks ()Ljava/util/stream/Stream;

View File

@ -1,7 +1,8 @@
CLASS net/minecraft/class_5350 net/minecraft/server/DataPackContents
COMMENT Contains loaders for contents controllable by data packs.
COMMENT
COMMENT <p>This can be accessed via {@link MinecraftServer.ResourceManagerHolder#dataPackContents}.
COMMENT <p>This can be accessed via {@link
COMMENT net.minecraft.server.MinecraftServer.ResourceManagerHolder#dataPackContents}.
COMMENT There are shortcut methods to access individual loaders on {@link MinecraftServer}.
FIELD field_25334 COMPLETED_UNIT Ljava/util/concurrent/CompletableFuture;
FIELD field_25336 commandManager Lnet/minecraft/class_2170;

View File

@ -368,7 +368,7 @@ CLASS net/minecraft/class_3218 net/minecraft/server/world/ServerWorld
COMMENT
COMMENT @return the position of the structure, or {@code null} if no structure could be found within the given search radius
COMMENT
COMMENT @see ChunkGenerator#locateStructure
COMMENT @see ChunkGenerator#locateStructure(ServerWorld, RegistryEntryList, BlockPos, int, boolean)
ARG 1 structureTag
ARG 2 pos
COMMENT the position to start the searching at

View File

@ -2,7 +2,7 @@ CLASS net/minecraft/class_3471 net/minecraft/structure/WoodlandMansionGenerator
COMMENT The generator for the woodland mansion structure.
COMMENT
COMMENT <p>The cobblestones underneath the mansion are generated {@linkplain
COMMENT net.minecraft.world.gen.feature.WoodlandMansionFeature#postPlace after
COMMENT net.minecraft.world.gen.structure.WoodlandMansionStructure#postPlace after
COMMENT the mansion placement}.
METHOD method_15029 addPieces (Lnet/minecraft/class_3485;Lnet/minecraft/class_2338;Lnet/minecraft/class_2470;Ljava/util/List;Lnet/minecraft/class_5819;)V
ARG 0 manager

View File

@ -15,8 +15,8 @@ CLASS net/minecraft/class_6864 net/minecraft/tag/TagPacketSerializer
ARG 4 rawIds
CLASS class_5748 Serialized
COMMENT A serialization-friendly POJO representation of a {@linkplain
COMMENT RegistryEntryList registry entry list} of tags. This allows easy transport
COMMENT of tags over Minecraft network protocol.
COMMENT net.minecraft.util.registry.RegistryEntryList registry entry list} of tags.
COMMENT This allows easy transport of tags over Minecraft network protocol.
COMMENT
COMMENT <p>This stores tag entries with raw integer IDs and requires a registry
COMMENT for raw ID access to serialize or deserialize tags.

View File

@ -8,7 +8,7 @@ CLASS net/minecraft/class_6088 net/minecraft/world/WorldEvents
COMMENT received on the client by {@link net.minecraft.client.network.ClientPlayNetworkHandler#onWorldEvent(net.minecraft.network.packet.s2c.play.WorldEventS2CPacket) ClientPlayNetworkHandler#onWorldEvent},
COMMENT synced by {@link net.minecraft.client.world.ClientWorld#syncWorldEvent(net.minecraft.entity.player.PlayerEntity, int, net.minecraft.util.math.BlockPos, int) ClientWorld#syncWorldEvent} and
COMMENT {@link net.minecraft.client.world.ClientWorld#syncGlobalEvent(int, net.minecraft.util.math.BlockPos, int) ClientWorld#syncGlobalEvent} (for regular and global events respectively), and
COMMENT finally processed by {@link net.minecraft.client.render.WorldRenderer#processWorldEvent(net.minecraft.entity.player.PlayerEntity, int, net.minecraft.util.math.BlockPos, int) WorldRenderer#processWorldEvent} and
COMMENT finally processed by {@link net.minecraft.client.render.WorldRenderer#processWorldEvent(int, net.minecraft.util.math.BlockPos, int) WorldRenderer#processWorldEvent} and
COMMENT {@link net.minecraft.client.render.WorldRenderer#processGlobalEvent(int, net.minecraft.util.math.BlockPos, int) WorldRenderer#processGlobalEvent} (for regular and global events respectively).
FIELD field_31114 ZOMBIE_INFECTS_VILLAGER I
COMMENT A zombie infects a villager.
@ -121,7 +121,7 @@ CLASS net/minecraft/class_6088 net/minecraft/world/WorldEvents
FIELD field_31139 REDSTONE_TORCH_BURNS_OUT I
COMMENT A redstone torch burns out.
COMMENT <br>Plays the redstone torch burn out sound event and spawns smoke particles.
COMMENT <p>Called by {@link net.minecraft.block.RedstoneTorchBlock#scheduledTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, java.util.Random) RedstoneTorchBlock#scheduledTick}
COMMENT <p>Called by {@link net.minecraft.block.RedstoneTorchBlock#scheduledTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.AbstractRandom) RedstoneTorchBlock#scheduledTick}
FIELD field_31140 DISPENSER_DISPENSES I
COMMENT A dispenser dispenses an item.
COMMENT <br>Plays the dispensing sound event.
@ -156,7 +156,7 @@ CLASS net/minecraft/class_6088 net/minecraft/world/WorldEvents
COMMENT {@link net.minecraft.entity.passive.RabbitEntity.EatCarrotCropGoal#tick() RabbitEntity.EatCarrotCropGoal#tick},
COMMENT {@link net.minecraft.block.SpongeBlock#update(net.minecraft.world.World, net.minecraft.util.math.BlockPos) SpongeBlock#update},
COMMENT {@link net.minecraft.block.TurtleEggBlock#breakEgg(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState) TurtleEggBlock#breakEgg},
COMMENT {@link net.minecraft.block.TurtleEggBlock#randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, java.util.Random) TurtleEggBlock#randomTick},
COMMENT {@link net.minecraft.block.TurtleEggBlock#randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.AbstractRandom) TurtleEggBlock#randomTick},
COMMENT {@link net.minecraft.entity.passive.TurtleEntity#tickMovement() TurtleEntity#tickMovement},
COMMENT {@link net.minecraft.block.WitherSkullBlock#onPlaced(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.entity.SkullBlockEntity) WitherSkullBlock#onPlaced},
COMMENT and {@link net.minecraft.world.World#breakBlock(net.minecraft.util.math.BlockPos, boolean, net.minecraft.entity.Entity, int) World#breakBlock}
@ -351,8 +351,8 @@ CLASS net/minecraft/class_6088 net/minecraft/world/WorldEvents
FIELD field_37586 SCULK_CHARGE I
COMMENT Sculk... charges? Sculk is weird.
COMMENT <br>Spawns sculk charge particles.
COMMENT <br>Called by {@link net.minecraft.block.entity.SculkSpreadManager#tick(net.minecraft.world.World, net.minecraft.util.math.BlockPos, java.util.Random) SculkSpreadManager#tick}
COMMENT <br>Called by {@link net.minecraft.block.entity.SculkSpreadManager#tick(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.AbstractRandom, boolean) SculkSpreadManager#tick}
FIELD field_38228 SCULK_SHRIEKS I
COMMENT A sculk shrieker shrieks.
COMMENT <br>Spawns shriek particles and plays the shriek sound event.
COMMENT <br>Called by {@link net.minecraft.block.SculkShriekerBlock#shriek(net.minecraft.world.World, net.minecraft.block.BlockState, net.minecraft.util.math.BlockPos) SculkShriekerBlock#shriek}
COMMENT <br>Called by {@link net.minecraft.block.entity.SculkShriekerBlockEntity#shriek(net.minecraft.server.world.ServerWorld, net.minecraft.entity.Entity) SculkShriekerBlockEntity#shriek}

View File

@ -125,3 +125,12 @@ CLASS net/minecraft/class_6554 net/minecraft/world/biome/source/util/VanillaBiom
METHOD method_40012 getErosionParameters ()[Lnet/minecraft/class_6544$class_6546;
METHOD method_40013 getContinentalnessParameters ()[Lnet/minecraft/class_6544$class_6546;
METHOD method_40014 getWeirdnessParameters ()[Lnet/minecraft/class_6544$class_6546;
METHOD method_41419 writeDeepDarkParameters (Ljava/util/function/Consumer;Lnet/minecraft/class_6544$class_6546;Lnet/minecraft/class_6544$class_6546;Lnet/minecraft/class_6544$class_6546;Lnet/minecraft/class_6544$class_6546;Lnet/minecraft/class_6544$class_6546;FLnet/minecraft/class_5321;)V
ARG 1 parameters
ARG 2 temperature
ARG 3 humidity
ARG 4 continentalness
ARG 5 erosion
ARG 6 weirdness
ARG 7 offset
ARG 8 biome

View File

@ -2,11 +2,6 @@ CLASS net/minecraft/class_5715 net/minecraft/world/event/listener/EntityGameEven
COMMENT A game event handler for an entity so that the listener stored can be
COMMENT moved to the correct dispatcher or unregistered as the entity moves or
COMMENT gets removed.
COMMENT
COMMENT @apiNote This implementation is currently unused by vanilla as vanilla
COMMENT doesn't have any entity that listens to game events.
COMMENT
COMMENT @see net.minecraft.entity.Entity#getGameEventHandler()
FIELD field_28182 listener Lnet/minecraft/class_5714;
FIELD field_28183 sectionPos Lnet/minecraft/class_4076;
METHOD <init> (Lnet/minecraft/class_5714;)V