mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-04 08:52:01 -05:00
Compare commits
258
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e086eba479 | ||
|
|
f1a5d1fe3c | ||
|
|
05f3801237 | ||
|
|
55f359243b | ||
|
|
033263f5b4 | ||
|
|
35129eb522 | ||
|
|
fba780d6a2 | ||
|
|
fa57d4b7da | ||
|
|
3982efa098 | ||
|
|
8339bb3118 | ||
|
|
bae47d3e6b | ||
|
|
0ff899dae3 | ||
|
|
e9fa3a7393 | ||
|
|
914fb084ef | ||
|
|
8483163895 | ||
|
|
b3d215831a | ||
|
|
b4b1f11f40 | ||
|
|
ffd5158a93 | ||
|
|
4dcd8377a2 | ||
|
|
523efa416f | ||
|
|
b63dc92e2c | ||
|
|
dc66e8cf6b | ||
|
|
a4a7461cef | ||
|
|
dcd7847dc0 | ||
|
|
21b49306ab | ||
|
|
e0ba395d37 | ||
|
|
a3f247c258 | ||
|
|
0102872d87 | ||
|
|
2d7f5ea8a3 | ||
|
|
5e42ae950c | ||
|
|
ec686f7a39 | ||
|
|
311810fa82 | ||
|
|
00bf1284d3 | ||
|
|
ce3fe65457 | ||
|
|
36e0c0ab4e | ||
|
|
27f926e7ec | ||
|
|
dad730f294 | ||
|
|
6950f05d11 | ||
|
|
5b6165c48d | ||
|
|
b61b3c9dd2 | ||
|
|
0b565e9639 | ||
|
|
9df83bc5a2 | ||
|
|
79198b18b7 | ||
|
|
f57fd54176 | ||
|
|
c1013989b4 | ||
|
|
922c85fe9d | ||
|
|
e16b369f6e | ||
|
|
c3a60b8df2 | ||
|
|
e97fb4044e | ||
|
|
3a0dc7faba | ||
|
|
673abf4b97 | ||
|
|
5613a35972 | ||
|
|
51fe7aaaf3 | ||
|
|
4055274204 | ||
|
|
404e49fdc6 | ||
|
|
1d6ee7dbcc | ||
|
|
f6fabc5f4f | ||
|
|
6b0b29a9b7 | ||
|
|
037179fa88 | ||
|
|
fada3a7ffb | ||
|
|
634f51e3fc | ||
|
|
44259ea529 | ||
|
|
e6f14832db | ||
|
|
0e23b0242c | ||
|
|
dc474a8946 | ||
|
|
4d7185f6ab | ||
|
|
25ecc59009 | ||
|
|
cb9fc05d6d | ||
|
|
2efb400a13 | ||
|
|
1f79388ddd | ||
|
|
f43641f86f | ||
|
|
121ac2eb29 | ||
|
|
4a8e88dcb2 | ||
|
|
90b29c4ccf | ||
|
|
f2cb073aad | ||
|
|
4025289290 | ||
|
|
60cb0dfc7f | ||
|
|
cf78f2a288 | ||
|
|
0ea15c97a0 | ||
|
|
22ad451907 | ||
|
|
5d3aa53748 | ||
|
|
9360ba426a | ||
|
|
0249204303 | ||
|
|
bb017458ff | ||
|
|
eb421583b4 | ||
|
|
bc2ae1075b | ||
|
|
24874e5369 | ||
|
|
6f9957e82b | ||
|
|
2779a538bb | ||
|
|
6b7bf0141c | ||
|
|
03eb18bb32 | ||
|
|
fcc763adaf | ||
|
|
a3c89a8f95 | ||
|
|
388e6936ea | ||
|
|
b6d955746f | ||
|
|
2f4211edf2 | ||
|
|
086b4fd4f6 | ||
|
|
8f659478cd | ||
|
|
ec492d3fa5 | ||
|
|
920e8d35a9 | ||
|
|
55d56d9138 | ||
|
|
65250cbe30 | ||
|
|
9a626dd7ed | ||
|
|
e3aca9211d | ||
|
|
8bb12cbd35 | ||
|
|
9b69cc5a8f | ||
|
|
b31ca18cfc | ||
|
|
181f9bbc08 | ||
|
|
35e973d387 | ||
|
|
87e05257b6 | ||
|
|
49e49d057b | ||
|
|
98e745a0a8 | ||
|
|
92f822d4ee | ||
|
|
f0b3d62594 | ||
|
|
5aac8b4893 | ||
|
|
532348681e | ||
|
|
87f3e2f00f | ||
|
|
6b44820108 | ||
|
|
bcd75d8518 | ||
|
|
89cc24a863 | ||
|
|
510aa9b421 | ||
|
|
114105815d | ||
|
|
1870261762 | ||
|
|
810b3c6cd6 | ||
|
|
f9434d2cf0 | ||
|
|
68f26a1ba6 | ||
|
|
b67fa6ddf6 | ||
|
|
0a2881674e | ||
|
|
7e706369b4 | ||
|
|
29c8822d90 | ||
|
|
19156cdd3b | ||
|
|
9aaaadffaa | ||
|
|
78aecfebaf | ||
|
|
65641d1006 | ||
|
|
49ca2d2d76 | ||
|
|
63cd4af408 | ||
|
|
704107c3dd | ||
|
|
9d1d0ef3f3 | ||
|
|
b6168b7ccc | ||
|
|
51706e5ac1 | ||
|
|
614e9acfca | ||
|
|
52d9a2216c | ||
|
|
42b653b197 | ||
|
|
5622c9dd73 | ||
|
|
a9e7674933 | ||
|
|
ea014f7a77 | ||
|
|
79cf1353b9 | ||
|
|
1922be9074 | ||
|
|
b0da38c278 | ||
|
|
38fe16b5f2 | ||
|
|
f866a5fd54 | ||
|
|
616a8795ea | ||
|
|
47f983f430 | ||
|
|
b200237c7d | ||
|
|
a22447a555 | ||
|
|
a743e6b1c7 | ||
|
|
2456ff26ed | ||
|
|
651fa124c5 | ||
|
|
f0c1f856f2 | ||
|
|
86b716bc5b | ||
|
|
4fe66e5800 | ||
|
|
3d1425f086 | ||
|
|
abf6b6c228 | ||
|
|
a664311f0f | ||
|
|
9694886daa | ||
|
|
6d0833ece5 | ||
|
|
846c64f4d1 | ||
|
|
e9380882f2 | ||
|
|
c60f4436f0 | ||
|
|
bf465e0029 | ||
|
|
ed31825a8d | ||
|
|
0c8efe4d02 | ||
|
|
ec9c83fa2b | ||
|
|
a4da45e3b2 | ||
|
|
4f79e9eeca | ||
|
|
4d44b5fd55 | ||
|
|
dbc367ba2d | ||
|
|
a57636189a | ||
|
|
57c13137e4 | ||
|
|
9ccc51df43 | ||
|
|
840dd9e1f8 | ||
|
|
6bb9dc6b73 | ||
|
|
103187750e | ||
|
|
a5f2f6140d | ||
|
|
c8a8c0ef89 | ||
|
|
602ea9f0e1 | ||
|
|
617e5a46a1 | ||
|
|
a2d37f12fb | ||
|
|
782ce950b8 | ||
|
|
0dad7f150b | ||
|
|
f7c59f914c | ||
|
|
aa4ef06748 | ||
|
|
6fb36e34b6 | ||
|
|
1f93f56670 | ||
|
|
d8cb3f5852 | ||
|
|
6db4bc01a6 | ||
|
|
a4feb28898 | ||
|
|
e792779dd8 | ||
|
|
a6e0c08fdf | ||
|
|
22d80a3b3b | ||
|
|
04f95191f1 | ||
|
|
21fb54246e | ||
|
|
94d60e15b3 | ||
|
|
bda84069b4 | ||
|
|
d9b5003fa1 | ||
|
|
533d93c758 | ||
|
|
ba7c982605 | ||
|
|
25d358cf01 | ||
|
|
4000fcc3d7 | ||
|
|
fcfc6c3fe8 | ||
|
|
76fb5060c1 | ||
|
|
1bf6364b97 | ||
|
|
40764534a2 | ||
|
|
cb47e01823 | ||
|
|
a939945148 | ||
|
|
b4466ec981 | ||
|
|
f7d5a0a017 | ||
|
|
6e598f8527 | ||
|
|
0cadaefc09 | ||
|
|
2141ca5273 | ||
|
|
108255cbbb | ||
|
|
3fec37a9c1 | ||
|
|
c3be00f0ec | ||
|
|
6ea679eb07 | ||
|
|
51d28af8fa | ||
|
|
5661fbbab9 | ||
|
|
6e021c8272 | ||
|
|
00e79dfb22 | ||
|
|
4cdcf00dca | ||
|
|
723510f9aa | ||
|
|
9686f8b34d | ||
|
|
4c47c76ecf | ||
|
|
4045339e4c | ||
|
|
a9f74cbf6e | ||
|
|
371a422567 | ||
|
|
7f60924390 | ||
|
|
dda39a0f05 | ||
|
|
4d854e66b8 | ||
|
|
57c202e015 | ||
|
|
bd79e20c66 | ||
|
|
35b2c6ece4 | ||
|
|
e382e6872c | ||
|
|
4e1a2555be | ||
|
|
7ec3174a33 | ||
|
|
c9e89f49b0 | ||
|
|
aa6cd74c03 | ||
|
|
ea10fa4a79 | ||
|
|
692e93a91f | ||
|
|
bee287927c | ||
|
|
0caf75f839 | ||
|
|
d7510efc16 | ||
|
|
aa6ee44a7a | ||
|
|
7c90c7c497 | ||
|
|
2f083acbed | ||
|
|
38c1ddb52a | ||
|
|
46b4b0b8d5 | ||
|
|
d0e808f44c | ||
|
|
e454fef40e |
No files matched your search
@@ -16,6 +16,12 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
env:
|
||||
ORG_GRADLE_PROJECT_paperBuildCacheEnabled: true
|
||||
ORG_GRADLE_PROJECT_paperBuildCacheUsername: ${{ secrets.PAPER_BUILD_CACHE_USERNAME }}
|
||||
ORG_GRADLE_PROJECT_paperBuildCachePassword: ${{ secrets.PAPER_BUILD_CACHE_PASSWORD }}
|
||||
ORG_GRADLE_PROJECT_paperBuildCachePush: true
|
||||
|
||||
# The goal of the build workflow is split into multiple requirements.
|
||||
# 1. Run on pushes to same repo.
|
||||
# 2. Run on PR open/reopen/syncs from repos that are not the same (PRs from the same repo are covered by 1)
|
||||
|
||||
@@ -40,7 +40,7 @@ How To (Plugin Developers)
|
||||
<dependency>
|
||||
<groupId>io.papermc.paper</groupId>
|
||||
<artifactId>paper-api</artifactId>
|
||||
<version>1.21.6-R0.1-SNAPSHOT</version>
|
||||
<version>1.21.10-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
```
|
||||
@@ -53,7 +53,7 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("io.papermc.paper:paper-api:1.21.6-R0.1-SNAPSHOT")
|
||||
compileOnly("io.papermc.paper:paper-api:1.21.10-R0.1-SNAPSHOT")
|
||||
}
|
||||
|
||||
java {
|
||||
|
||||
@@ -5,10 +5,3 @@
|
||||
# authlib com/mojang/authlib/yggdrasil/YggdrasilGameProfileRepository.java
|
||||
# datafixerupper com.mojang.datafixers.DataFixerBuilder
|
||||
# datafixerupper com/mojang/datafixers/util/Either.java
|
||||
# To import classes from the vanilla Minecraft jar use `minecraft` as the artifactId:
|
||||
# minecraft net.minecraft.world.level.entity.LevelEntityGetterAdapter
|
||||
# minecraft net/minecraft/world/level/entity/LevelEntityGetter.java
|
||||
# To import minecraft data files, like the default chat type, use `mc_data` as the prefix:
|
||||
# mc_data chat_type/chat.json
|
||||
# mc_data dimension_type/overworld.json
|
||||
#
|
||||
+29
-15
@@ -25,7 +25,6 @@ public net.minecraft.network.chat.numbers.FixedFormat value
|
||||
public net.minecraft.network.chat.numbers.StyledFormat style
|
||||
public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket <init>(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/entity/BlockEntityType;Lnet/minecraft/nbt/CompoundTag;)V
|
||||
public net.minecraft.network.protocol.game.ClientboundBlockUpdatePacket blockState
|
||||
public net.minecraft.network.protocol.game.ClientboundSetDefaultSpawnPositionPacket pos
|
||||
public net.minecraft.network.protocol.game.ServerboundMovePlayerPacket hasPos
|
||||
public net.minecraft.network.protocol.game.ServerboundMovePlayerPacket hasRot
|
||||
public net.minecraft.network.protocol.game.ServerboundMovePlayerPacket x
|
||||
@@ -42,8 +41,6 @@ public net.minecraft.server.MinecraftServer doRunTask(Lnet/minecraft/server/Tick
|
||||
public net.minecraft.server.MinecraftServer executor
|
||||
public net.minecraft.server.MinecraftServer fixerUpper
|
||||
public net.minecraft.server.MinecraftServer playerDataStorage
|
||||
public net.minecraft.server.MinecraftServer prepareLevels(Lnet/minecraft/server/level/progress/ChunkProgressListener;)V
|
||||
public net.minecraft.server.MinecraftServer progressListenerFactory
|
||||
public net.minecraft.server.MinecraftServer resources
|
||||
public net.minecraft.server.MinecraftServer serverThread
|
||||
public net.minecraft.server.MinecraftServer$ReloadableResources
|
||||
@@ -63,7 +60,6 @@ public net.minecraft.server.level.ChunkMap distanceManager
|
||||
public net.minecraft.server.level.ChunkMap entityMap
|
||||
public net.minecraft.server.level.ChunkMap getVisibleChunkIfPresent(J)Lnet/minecraft/server/level/ChunkHolder;
|
||||
public net.minecraft.server.level.ChunkMap level
|
||||
public net.minecraft.server.level.ChunkMap progressListener
|
||||
public net.minecraft.server.level.ChunkMap save(Lnet/minecraft/world/level/chunk/ChunkAccess;)Z
|
||||
public net.minecraft.server.level.ChunkMap serverViewDistance
|
||||
public net.minecraft.server.level.ChunkMap setServerViewDistance(I)V
|
||||
@@ -82,7 +78,6 @@ public net.minecraft.server.level.ServerChunkCache mainThread
|
||||
public net.minecraft.server.level.ServerChunkCache mainThreadProcessor
|
||||
public net.minecraft.server.level.ServerChunkCache runDistanceManagerUpdates()Z
|
||||
public net.minecraft.server.level.ServerChunkCache spawnEnemies
|
||||
public net.minecraft.server.level.ServerChunkCache spawnFriendlies
|
||||
public net.minecraft.server.level.ServerChunkCache$MainThreadExecutor
|
||||
public net.minecraft.server.level.ServerLevel chunkSource
|
||||
public net.minecraft.server.level.ServerLevel entityManager
|
||||
@@ -99,11 +94,15 @@ public net.minecraft.server.level.ServerPlayer lastSentExp
|
||||
public net.minecraft.server.level.ServerPlayer nextContainerCounter()V
|
||||
public net.minecraft.server.level.ServerPlayer particleStatus
|
||||
public net.minecraft.server.level.ServerPlayer seenCredits
|
||||
public net.minecraft.server.level.ServerPlayer setShoulderEntityLeft(Lnet/minecraft/nbt/CompoundTag;)V
|
||||
public net.minecraft.server.level.ServerPlayer setShoulderEntityRight(Lnet/minecraft/nbt/CompoundTag;)V
|
||||
public net.minecraft.server.level.ServerPlayer triggerDimensionChangeTriggers(Lnet/minecraft/server/level/ServerLevel;)V
|
||||
public net.minecraft.server.level.ServerPlayer wardenSpawnTracker
|
||||
public net.minecraft.server.level.ServerPlayer$RespawnPosAngle
|
||||
public net.minecraft.server.level.ServerPlayerGameMode level
|
||||
public net.minecraft.server.level.TicketType register(Ljava/lang/String;JZLnet/minecraft/server/level/TicketType$TicketUse;)Lnet/minecraft/server/level/TicketType;
|
||||
public net.minecraft.server.network.ServerConfigurationPacketListenerImpl clientInformation
|
||||
public net.minecraft.server.network.ServerConfigurationPacketListenerImpl currentTask
|
||||
public net.minecraft.server.network.ServerConfigurationPacketListenerImpl finishCurrentTask(Lnet/minecraft/server/network/ConfigurationTask$Type;)V
|
||||
public net.minecraft.server.network.ServerGamePacketListenerImpl isChatMessageIllegal(Ljava/lang/String;)Z
|
||||
public net.minecraft.server.network.ServerLoginPacketListenerImpl authenticatedProfile
|
||||
public net.minecraft.server.network.ServerLoginPacketListenerImpl connection
|
||||
@@ -146,6 +145,7 @@ public net.minecraft.world.entity.AreaEffectCloud radiusOnUse
|
||||
public net.minecraft.world.entity.AreaEffectCloud radiusPerTick
|
||||
public net.minecraft.world.entity.AreaEffectCloud reapplicationDelay
|
||||
public net.minecraft.world.entity.AreaEffectCloud waitTime
|
||||
public net.minecraft.world.entity.Avatar DATA_PLAYER_MODE_CUSTOMISATION
|
||||
public net.minecraft.world.entity.Display DATA_POS_ROT_INTERPOLATION_DURATION_ID
|
||||
public net.minecraft.world.entity.Display createTransformation(Lnet/minecraft/network/syncher/SynchedEntityData;)Lcom/mojang/math/Transformation;
|
||||
public net.minecraft.world.entity.Display getBillboardConstraints()Lnet/minecraft/world/entity/Display$BillboardConstraints;
|
||||
@@ -185,6 +185,7 @@ public net.minecraft.world.entity.Display$TextDisplay getTextOpacity()B
|
||||
public net.minecraft.world.entity.Display$TextDisplay setFlags(B)V
|
||||
public net.minecraft.world.entity.Display$TextDisplay setText(Lnet/minecraft/network/chat/Component;)V
|
||||
public net.minecraft.world.entity.Display$TextDisplay setTextOpacity(B)V
|
||||
public net.minecraft.world.entity.Entity DATA_TICKS_FROZEN
|
||||
public net.minecraft.world.entity.Entity FLAG_INVISIBLE
|
||||
public net.minecraft.world.entity.Entity getEncodeId()Ljava/lang/String;
|
||||
public net.minecraft.world.entity.Entity getFireImmuneTicks()I
|
||||
@@ -251,6 +252,7 @@ public net.minecraft.world.entity.Mob lootTable
|
||||
public net.minecraft.world.entity.Mob lootTableSeed
|
||||
public net.minecraft.world.entity.OminousItemSpawner setItem(Lnet/minecraft/world/item/ItemStack;)V
|
||||
public net.minecraft.world.entity.OminousItemSpawner spawnItemAfterTicks
|
||||
public net.minecraft.world.entity.ai.attributes.Attribute sentiment
|
||||
public net.minecraft.world.entity.ai.attributes.AttributeSupplier getAttributeInstance(Lnet/minecraft/core/Holder;)Lnet/minecraft/world/entity/ai/attributes/AttributeInstance;
|
||||
public net.minecraft.world.entity.ai.control.MoveControl$Operation
|
||||
public net.minecraft.world.entity.ai.gossip.GossipContainer gossips
|
||||
@@ -270,6 +272,7 @@ public net.minecraft.world.entity.animal.Bee setHasStung(Z)V
|
||||
public net.minecraft.world.entity.animal.Bee setRolling(Z)V
|
||||
public net.minecraft.world.entity.animal.Bee stayOutOfHiveCountdown
|
||||
public net.minecraft.world.entity.animal.Bee ticksWithoutNectarSinceExitingHive
|
||||
public net.minecraft.world.entity.animal.Bee timeSinceSting
|
||||
public net.minecraft.world.entity.animal.Cat isRelaxStateOne()Z
|
||||
public net.minecraft.world.entity.animal.Cat setCollarColor(Lnet/minecraft/world/item/DyeColor;)V
|
||||
public net.minecraft.world.entity.animal.Cat setRelaxStateOne(Z)V
|
||||
@@ -339,6 +342,15 @@ public net.minecraft.world.entity.decoration.ItemFrame DATA_ROTATION
|
||||
public net.minecraft.world.entity.decoration.ItemFrame dropChance
|
||||
public net.minecraft.world.entity.decoration.ItemFrame fixed
|
||||
public net.minecraft.world.entity.decoration.ItemFrame setDirection(Lnet/minecraft/core/Direction;)V
|
||||
public net.minecraft.world.entity.decoration.Mannequin ALL_LAYERS
|
||||
public net.minecraft.world.entity.decoration.Mannequin DEFAULT_DESCRIPTION
|
||||
public net.minecraft.world.entity.decoration.Mannequin getDescription()Lnet/minecraft/network/chat/Component;
|
||||
public net.minecraft.world.entity.decoration.Mannequin getImmovable()Z
|
||||
public net.minecraft.world.entity.decoration.Mannequin getProfile()Lnet/minecraft/world/item/component/ResolvableProfile;
|
||||
public net.minecraft.world.entity.decoration.Mannequin setDescription(Lnet/minecraft/network/chat/Component;)V
|
||||
public net.minecraft.world.entity.decoration.Mannequin setHideDescription(Z)V
|
||||
public net.minecraft.world.entity.decoration.Mannequin setImmovable(Z)V
|
||||
public net.minecraft.world.entity.decoration.Mannequin setProfile(Lnet/minecraft/world/item/component/ResolvableProfile;)V
|
||||
public net.minecraft.world.entity.decoration.Painting setVariant(Lnet/minecraft/core/Holder;)V
|
||||
public net.minecraft.world.entity.item.FallingBlockEntity <init>(Lnet/minecraft/world/level/Level;DDDLnet/minecraft/world/level/block/state/BlockState;)V
|
||||
public net.minecraft.world.entity.item.FallingBlockEntity blockState
|
||||
@@ -416,14 +428,11 @@ public net.minecraft.world.entity.npc.WanderingTrader getWanderTarget()Lnet/mine
|
||||
public net.minecraft.world.entity.player.Abilities flyingSpeed
|
||||
public net.minecraft.world.entity.player.Abilities walkingSpeed
|
||||
public net.minecraft.world.entity.player.Inventory equipment
|
||||
public net.minecraft.world.entity.player.Player DATA_PLAYER_MODE_CUSTOMISATION
|
||||
public net.minecraft.world.entity.player.Player closeContainer()V
|
||||
public net.minecraft.world.entity.player.Player enchantmentSeed
|
||||
public net.minecraft.world.entity.player.Player getFireImmuneTicks()I
|
||||
public net.minecraft.world.entity.player.Player hurtDir
|
||||
public net.minecraft.world.entity.player.Player removeEntitiesOnShoulder()V
|
||||
public net.minecraft.world.entity.player.Player setShoulderEntityLeft(Lnet/minecraft/nbt/CompoundTag;)V
|
||||
public net.minecraft.world.entity.player.Player setShoulderEntityRight(Lnet/minecraft/nbt/CompoundTag;)V
|
||||
public net.minecraft.world.entity.player.Player sleepCounter
|
||||
public net.minecraft.world.entity.projectile.AbstractArrow baseDamage
|
||||
public net.minecraft.world.entity.projectile.AbstractArrow firedFromWeapon
|
||||
@@ -490,7 +499,7 @@ public net.minecraft.world.entity.vehicle.AbstractMinecartContainer lootTable
|
||||
public net.minecraft.world.entity.vehicle.AbstractMinecartContainer lootTableSeed
|
||||
public net.minecraft.world.entity.vehicle.MinecartCommandBlock DATA_ID_COMMAND_NAME
|
||||
public net.minecraft.world.entity.vehicle.MinecartFurnace fuel
|
||||
public net.minecraft.world.entity.vehicle.MinecartTNT explode(D)V
|
||||
public net.minecraft.world.entity.vehicle.MinecartTNT explode(Lnet/minecraft/world/damagesource/DamageSource;D)V
|
||||
public net.minecraft.world.entity.vehicle.MinecartTNT explosionPowerBase
|
||||
public net.minecraft.world.entity.vehicle.MinecartTNT explosionSpeedFactor
|
||||
public net.minecraft.world.entity.vehicle.MinecartTNT fuse
|
||||
@@ -506,6 +515,8 @@ public net.minecraft.world.inventory.AbstractContainerMenu quickcraftSlots
|
||||
public net.minecraft.world.inventory.AbstractContainerMenu quickcraftStatus
|
||||
public net.minecraft.world.inventory.AbstractContainerMenu quickcraftType
|
||||
public net.minecraft.world.inventory.AbstractContainerMenu resetQuickCraft()V
|
||||
public net.minecraft.world.inventory.AbstractContainerMenu synchronizeSlotToRemote(ILnet/minecraft/world/item/ItemStack;Ljava/util/function/Supplier;)V
|
||||
public net.minecraft.world.inventory.AbstractContainerMenu triggerSlotListeners(ILnet/minecraft/world/item/ItemStack;Ljava/util/function/Supplier;)V
|
||||
public net.minecraft.world.inventory.AbstractCraftingMenu craftSlots
|
||||
public net.minecraft.world.inventory.AbstractCraftingMenu resultSlots
|
||||
public net.minecraft.world.inventory.AnvilMenu cost
|
||||
@@ -534,6 +545,11 @@ public net.minecraft.world.item.StandingAndWallBlockItem wallBlock
|
||||
public net.minecraft.world.item.component.BundleContents$Mutable getMaxAmountToAdd(Lnet/minecraft/world/item/ItemStack;)I
|
||||
public net.minecraft.world.item.component.ItemContainerContents MAX_SIZE
|
||||
public net.minecraft.world.item.component.ItemContainerContents items
|
||||
public net.minecraft.world.item.component.ResolvableProfile unpack()Lcom/mojang/datafixers/util/Either;
|
||||
public net.minecraft.world.item.component.ResolvableProfile$Dynamic <init>(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/world/entity/player/PlayerSkin$Patch;)V
|
||||
public net.minecraft.world.item.component.ResolvableProfile$Partial
|
||||
public net.minecraft.world.item.component.ResolvableProfile$Partial MAP_CODEC
|
||||
public net.minecraft.world.item.component.ResolvableProfile$Static <init>(Lcom/mojang/datafixers/util/Either;Lnet/minecraft/world/entity/player/PlayerSkin$Patch;)V
|
||||
public net.minecraft.world.item.context.UseOnContext <init>(Lnet/minecraft/world/level/Level;Lnet/minecraft/world/entity/player/Player;Lnet/minecraft/world/InteractionHand;Lnet/minecraft/world/item/ItemStack;Lnet/minecraft/world/phys/BlockHitResult;)V
|
||||
public net.minecraft.world.item.crafting.RecipeManager recipes
|
||||
public net.minecraft.world.item.crafting.RecipeMap byKey
|
||||
@@ -557,6 +573,7 @@ public net.minecraft.world.level.BaseSpawner spawnRange
|
||||
public net.minecraft.world.level.GameRules GAME_RULE_TYPES
|
||||
public net.minecraft.world.level.GameRules$Value deserialize(Ljava/lang/String;)V
|
||||
public net.minecraft.world.level.GameRules$Value onChanged(Lnet/minecraft/server/MinecraftServer;)V
|
||||
public net.minecraft.world.level.Level DEFAULT_EXPLOSION_BLOCK_PARTICLES
|
||||
public net.minecraft.world.level.Level blockEntityTickers
|
||||
public net.minecraft.world.level.Level getEntities()Lnet/minecraft/world/level/entity/LevelEntityGetter;
|
||||
public net.minecraft.world.level.Level levelData
|
||||
@@ -571,8 +588,6 @@ public net.minecraft.world.level.biome.Biome getTemperature(Lnet/minecraft/core/
|
||||
public net.minecraft.world.level.biome.Biome$ClimateSettings
|
||||
public net.minecraft.world.level.block.Block popExperience(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/core/BlockPos;I)V
|
||||
public net.minecraft.world.level.block.ChestBlock isBlockedChestByBlock(Lnet/minecraft/world/level/BlockGetter;Lnet/minecraft/core/BlockPos;)Z
|
||||
public net.minecraft.world.level.block.ChiseledBookShelfBlock getHitSlot(Lnet/minecraft/world/phys/BlockHitResult;Lnet/minecraft/world/level/block/state/BlockState;)Ljava/util/OptionalInt;
|
||||
public net.minecraft.world.level.block.ChiseledBookShelfBlock getSection(F)I
|
||||
public net.minecraft.world.level.block.ComposterBlock$EmptyContainer
|
||||
public net.minecraft.world.level.block.ComposterBlock$InputContainer
|
||||
public net.minecraft.world.level.block.ComposterBlock$OutputContainer
|
||||
@@ -581,6 +596,7 @@ public net.minecraft.world.level.block.DropperBlock dispenseFrom(Lnet/minecraft/
|
||||
public net.minecraft.world.level.block.FireBlock igniteOdds
|
||||
public net.minecraft.world.level.block.RedStoneWireBlock canSurvive(Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/world/level/LevelReader;Lnet/minecraft/core/BlockPos;)Z
|
||||
public net.minecraft.world.level.block.RedStoneWireBlock shouldSignal
|
||||
public net.minecraft.world.level.block.SelectableSlotContainer getSection(FI)I
|
||||
public net.minecraft.world.level.block.ShulkerBoxBlock color
|
||||
public net.minecraft.world.level.block.SoundType breakSound
|
||||
public net.minecraft.world.level.block.SoundType hitSound
|
||||
@@ -614,6 +630,7 @@ public net.minecraft.world.level.block.entity.BrushableBlockEntity lootTable
|
||||
public net.minecraft.world.level.block.entity.BrushableBlockEntity lootTableSeed
|
||||
public net.minecraft.world.level.block.entity.CampfireBlockEntity cookingProgress
|
||||
public net.minecraft.world.level.block.entity.CampfireBlockEntity cookingTime
|
||||
public net.minecraft.world.level.block.entity.ChestBlockEntity DEFAULT_NAME
|
||||
public net.minecraft.world.level.block.entity.ChestBlockEntity openersCounter
|
||||
public net.minecraft.world.level.block.entity.ChestBlockEntity playSound(Lnet/minecraft/world/level/Level;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/block/state/BlockState;Lnet/minecraft/sounds/SoundEvent;)V
|
||||
public net.minecraft.world.level.block.entity.ChiseledBookShelfBlockEntity lastInteractedSlot
|
||||
@@ -680,12 +697,10 @@ public net.minecraft.world.level.chunk.ChunkGenerator generationSettingsGetter
|
||||
public net.minecraft.world.level.chunk.LevelChunk level
|
||||
public net.minecraft.world.level.chunk.LevelChunk loaded
|
||||
public net.minecraft.world.level.chunk.LevelChunkSection states
|
||||
public net.minecraft.world.level.chunk.PalettedContainer registry
|
||||
public net.minecraft.world.level.chunk.status.ChunkStatusTasks postLoadProtoChunk(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/world/level/storage/ValueInput$ValueInputList;)V
|
||||
public net.minecraft.world.level.chunk.storage.EntityStorage entityDeserializerQueue
|
||||
public net.minecraft.world.level.chunk.storage.EntityStorage level
|
||||
public net.minecraft.world.level.chunk.storage.RegionFileStorage regionCache
|
||||
public net.minecraft.world.level.chunk.storage.SerializableChunkData BLOCK_STATE_CODEC
|
||||
public net.minecraft.world.level.dimension.end.EndDragonFight GATEWAY_COUNT
|
||||
public net.minecraft.world.level.dimension.end.EndDragonFight dragonEvent
|
||||
public net.minecraft.world.level.dimension.end.EndDragonFight dragonUUID
|
||||
@@ -746,7 +761,6 @@ public-f net.minecraft.server.ReloadableServerResources commands
|
||||
public-f net.minecraft.server.dedicated.DedicatedServer serverLinks
|
||||
public-f net.minecraft.server.dedicated.DedicatedServer settings
|
||||
public-f net.minecraft.server.dedicated.DedicatedServerProperties pauseWhenEmptySeconds
|
||||
public-f net.minecraft.server.players.PlayerList maxPlayers
|
||||
public-f net.minecraft.world.entity.LivingEntity combatTracker
|
||||
public-f net.minecraft.world.entity.LivingEntity invulnerableDuration
|
||||
public-f net.minecraft.world.entity.Mob goalSelector
|
||||
|
||||
@@ -14,14 +14,14 @@ tiny 2 0 mojang spigot
|
||||
|
||||
# CraftBukkit changes type
|
||||
c net/minecraft/server/level/ServerLevel net/minecraft/server/level/WorldServer
|
||||
f Lnet/minecraft/world/level/storage/PrimaryLevelData; serverLevelData L
|
||||
f Lnet/minecraft/world/level/storage/PrimaryLevelData; serverLevelData J
|
||||
|
||||
c net/minecraft/world/level/chunk/LevelChunk net/minecraft/world/level/chunk/Chunk
|
||||
f Lnet/minecraft/server/level/ServerLevel; level r
|
||||
f Lnet/minecraft/server/level/ServerLevel; level q
|
||||
|
||||
# See mappings-patch.tiny
|
||||
c net/minecraft/server/level/ChunkMap net/minecraft/server/level/PlayerChunkMap
|
||||
f Lnet/minecraft/server/level/ChunkMap$ChunkDistanceManager; distanceManager H
|
||||
f Lnet/minecraft/server/level/ChunkMap$ChunkDistanceManager; distanceManager G
|
||||
|
||||
# The method is made public by Spigot, which then causes accidental overrides
|
||||
c net/minecraft/world/entity/Entity net/minecraft/world/entity/Entity
|
||||
|
||||
+6
-6
@@ -2,7 +2,7 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
|
||||
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||
|
||||
plugins {
|
||||
id("io.papermc.paperweight.core") version "2.0.0-beta.17" apply false
|
||||
id("io.papermc.paperweight.core") version "2.0.0-beta.19" apply false
|
||||
}
|
||||
|
||||
subprojects {
|
||||
@@ -24,19 +24,19 @@ subprojects {
|
||||
val paperMavenPublicUrl = "https://repo.papermc.io/repository/maven-public/"
|
||||
|
||||
subprojects {
|
||||
tasks.withType<JavaCompile> {
|
||||
tasks.withType<JavaCompile>().configureEach {
|
||||
options.encoding = Charsets.UTF_8.name()
|
||||
options.release = 21
|
||||
options.isFork = true
|
||||
options.compilerArgs.addAll(listOf("-Xlint:-deprecation", "-Xlint:-removal"))
|
||||
}
|
||||
tasks.withType<Javadoc> {
|
||||
tasks.withType<Javadoc>().configureEach {
|
||||
options.encoding = Charsets.UTF_8.name()
|
||||
}
|
||||
tasks.withType<ProcessResources> {
|
||||
tasks.withType<ProcessResources>().configureEach {
|
||||
filteringCharset = Charsets.UTF_8.name()
|
||||
}
|
||||
tasks.withType<Test> {
|
||||
tasks.withType<Test>().configureEach {
|
||||
testLogging {
|
||||
showStackTraces = true
|
||||
exceptionFormat = TestExceptionFormat.FULL
|
||||
@@ -51,7 +51,7 @@ subprojects {
|
||||
|
||||
extensions.configure<PublishingExtension> {
|
||||
repositories {
|
||||
maven("https://repo.papermc.io/repository/maven-snapshots/") {
|
||||
maven("https://artifactory.papermc.io/artifactory/snapshots/") {
|
||||
name = "paperSnapshots"
|
||||
credentials(PasswordCredentials::class)
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
group=io.papermc.paper
|
||||
version=1.21.6-R0.1-SNAPSHOT
|
||||
mcVersion=1.21.6
|
||||
version=1.21.10-R0.1-SNAPSHOT
|
||||
mcVersion=1.21.10
|
||||
|
||||
# Set to true while updating Minecraft version
|
||||
updatingMinecraft=false
|
||||
|
||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Copyright © 2015-2021 the original authors.
|
||||
# Copyright © 2015 the original authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -114,7 +114,6 @@ case "$( uname )" in #(
|
||||
NONSTOP* ) nonstop=true ;;
|
||||
esac
|
||||
|
||||
CLASSPATH="\\\"\\\""
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
@@ -172,7 +171,6 @@ fi
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if "$cygwin" || "$msys" ; then
|
||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
||||
|
||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||
|
||||
@@ -212,7 +210,6 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
set -- \
|
||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||
-classpath "$CLASSPATH" \
|
||||
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
||||
"$@"
|
||||
|
||||
|
||||
Vendored
+1
-2
@@ -70,11 +70,10 @@ goto fail
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
|
||||
+10
-23
@@ -10,8 +10,7 @@ java {
|
||||
}
|
||||
|
||||
val annotationsVersion = "26.0.2"
|
||||
// Keep in sync with paper-server adventure-text-serializer-ansi dep
|
||||
val adventureVersion = "4.21.0"
|
||||
val adventureVersion = "4.25.0"
|
||||
val bungeeCordChatVersion = "1.21-R0.2-deprecated+build.21"
|
||||
val slf4jVersion = "2.0.16"
|
||||
val log4jVersion = "2.24.1"
|
||||
@@ -66,8 +65,8 @@ dependencies {
|
||||
apiAndDocs("net.kyori:adventure-text-logger-slf4j")
|
||||
|
||||
api("org.apache.maven:maven-resolver-provider:3.9.6") // make API dependency for Paper Plugins
|
||||
compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.9.18")
|
||||
compileOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.9.18")
|
||||
implementation("org.apache.maven.resolver:maven-resolver-connector-basic:1.9.18")
|
||||
implementation("org.apache.maven.resolver:maven-resolver-transport-http:1.9.18")
|
||||
|
||||
// Annotations - Slowly migrate to jspecify
|
||||
val annotations = "org.jetbrains:annotations:$annotationsVersion"
|
||||
@@ -164,17 +163,17 @@ abstract class Services {
|
||||
}
|
||||
val services = objects.newInstance<Services>()
|
||||
|
||||
tasks.withType<Javadoc> {
|
||||
tasks.withType<Javadoc>().configureEach {
|
||||
val options = options as StandardJavadocDocletOptions
|
||||
options.overview = "src/main/javadoc/overview.html"
|
||||
options.use()
|
||||
options.isDocFilesSubDirs = true
|
||||
options.links(
|
||||
"https://guava.dev/releases/33.3.1-jre/api/docs/",
|
||||
"https://javadoc.io/doc/org.yaml/snakeyaml/2.2/",
|
||||
"https://javadoc.io/doc/org.jetbrains/annotations/$annotationsVersion/",
|
||||
"https://javadoc.io/doc/org.joml/joml/1.10.8/",
|
||||
"https://www.javadoc.io/doc/com.google.code.gson/gson/2.11.0",
|
||||
//"https://javadoc.io/doc/org.yaml/snakeyaml/2.2/",
|
||||
//"https://javadoc.io/doc/org.jetbrains/annotations/$annotationsVersion/",
|
||||
//"https://javadoc.io/doc/org.joml/joml/1.10.8/",
|
||||
//"https://www.javadoc.io/doc/com.google.code.gson/gson/2.11.0",
|
||||
"https://jspecify.dev/docs/api/",
|
||||
"https://jd.advntr.dev/api/$adventureVersion/",
|
||||
"https://jd.advntr.dev/key/$adventureVersion/",
|
||||
@@ -183,9 +182,9 @@ tasks.withType<Javadoc> {
|
||||
"https://jd.advntr.dev/text-serializer-legacy/$adventureVersion/",
|
||||
"https://jd.advntr.dev/text-serializer-plain/$adventureVersion/",
|
||||
"https://jd.advntr.dev/text-logger-slf4j/$adventureVersion/",
|
||||
"https://javadoc.io/doc/org.slf4j/slf4j-api/$slf4jVersion/",
|
||||
//"https://javadoc.io/doc/org.slf4j/slf4j-api/$slf4jVersion/",
|
||||
"https://logging.apache.org/log4j/2.x/javadoc/log4j-api/",
|
||||
"https://javadoc.io/doc/org.apache.maven.resolver/maven-resolver-api/1.7.3",
|
||||
//"https://javadoc.io/doc/org.apache.maven.resolver/maven-resolver-api/1.7.3",
|
||||
)
|
||||
options.tags("apiNote:a:API Note:")
|
||||
|
||||
@@ -233,15 +232,3 @@ val scanJarForBadCalls by tasks.registering(io.papermc.paperweight.tasks.ScanJar
|
||||
tasks.check {
|
||||
dependsOn(scanJarForBadCalls)
|
||||
}
|
||||
|
||||
if (providers.gradleProperty("updatingMinecraft").getOrElse("false").toBoolean()) {
|
||||
val scanJarForOldGeneratedCode by tasks.registering(io.papermc.paperweight.tasks.ScanJarForOldGeneratedCode::class) {
|
||||
mcVersion.set(providers.gradleProperty("mcVersion"))
|
||||
annotation.set("Lio/papermc/paper/generated/GeneratedFrom;")
|
||||
jarToScan.set(tasks.jar.flatMap { it.archiveFile })
|
||||
classpath.from(configurations.compileClasspath)
|
||||
}
|
||||
tasks.check {
|
||||
dependsOn(scanJarForOldGeneratedCode)
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.destroystokyo.paper.entity.ai;
|
||||
|
||||
import com.destroystokyo.paper.entity.RangedEntity;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.entity.SchoolableFish;
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import org.bukkit.NamespacedKey;
|
||||
import org.bukkit.entity.AbstractHorse;
|
||||
import org.bukkit.entity.AbstractSkeleton;
|
||||
@@ -68,7 +68,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public interface VanillaGoal<T extends Mob> extends Goal<T> {
|
||||
GoalKey<AbstractHorse> HORSE_RANDOM_STAND = create("horse_random_stand", AbstractHorse.class);
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class AttributeKeys {
|
||||
/**
|
||||
* {@code minecraft:armor}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class BannerPatternKeys {
|
||||
/**
|
||||
* {@code minecraft:base}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class BiomeKeys {
|
||||
/**
|
||||
* {@code minecraft:badlands}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class BlockTypeKeys {
|
||||
/**
|
||||
* {@code minecraft:acacia_button}
|
||||
@@ -95,6 +95,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> ACACIA_SAPLING = create(key("acacia_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:acacia_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> ACACIA_SHELF = create(key("acacia_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:acacia_sign}
|
||||
*
|
||||
@@ -347,6 +354,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> BAMBOO_SAPLING = create(key("bamboo_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:bamboo_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> BAMBOO_SHELF = create(key("bamboo_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:bamboo_sign}
|
||||
*
|
||||
@@ -536,6 +550,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> BIRCH_SAPLING = create(key("birch_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:birch_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> BIRCH_SHELF = create(key("birch_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:birch_sign}
|
||||
*
|
||||
@@ -1173,13 +1194,6 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> CAVE_VINES_PLANT = create(key("cave_vines_plant"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> CHAIN = create(key("chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:chain_command_block}
|
||||
*
|
||||
@@ -1257,6 +1271,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> CHERRY_SAPLING = create(key("cherry_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:cherry_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> CHERRY_SHELF = create(key("cherry_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:cherry_sign}
|
||||
*
|
||||
@@ -1551,6 +1572,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> CONDUIT = create(key("conduit"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> COPPER_BARS = create(key("copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_block}
|
||||
*
|
||||
@@ -1565,6 +1593,20 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> COPPER_BULB = create(key("copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> COPPER_CHAIN = create(key("copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> COPPER_CHEST = create(key("copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_door}
|
||||
*
|
||||
@@ -1572,6 +1614,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> COPPER_DOOR = create(key("copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> COPPER_GOLEM_STATUE = create(key("copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_grate}
|
||||
*
|
||||
@@ -1579,6 +1628,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> COPPER_GRATE = create(key("copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> COPPER_LANTERN = create(key("copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_ore}
|
||||
*
|
||||
@@ -1586,6 +1642,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> COPPER_ORE = create(key("copper_ore"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_torch}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> COPPER_TORCH = create(key("copper_torch"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_trapdoor}
|
||||
*
|
||||
@@ -1593,6 +1656,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> COPPER_TRAPDOOR = create(key("copper_trapdoor"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_wall_torch}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> COPPER_WALL_TORCH = create(key("copper_wall_torch"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:cornflower}
|
||||
*
|
||||
@@ -1747,6 +1817,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> CRIMSON_ROOTS = create(key("crimson_roots"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:crimson_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> CRIMSON_SHELF = create(key("crimson_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:crimson_sign}
|
||||
*
|
||||
@@ -2034,6 +2111,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> DARK_OAK_SAPLING = create(key("dark_oak_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:dark_oak_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> DARK_OAK_SHELF = create(key("dark_oak_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:dark_oak_sign}
|
||||
*
|
||||
@@ -2608,6 +2692,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> EXPOSED_COPPER = create(key("exposed_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> EXPOSED_COPPER_BARS = create(key("exposed_copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_bulb}
|
||||
*
|
||||
@@ -2615,6 +2706,20 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> EXPOSED_COPPER_BULB = create(key("exposed_copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> EXPOSED_COPPER_CHAIN = create(key("exposed_copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> EXPOSED_COPPER_CHEST = create(key("exposed_copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_door}
|
||||
*
|
||||
@@ -2622,6 +2727,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> EXPOSED_COPPER_DOOR = create(key("exposed_copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> EXPOSED_COPPER_GOLEM_STATUE = create(key("exposed_copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_grate}
|
||||
*
|
||||
@@ -2629,6 +2741,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> EXPOSED_COPPER_GRATE = create(key("exposed_copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> EXPOSED_COPPER_LANTERN = create(key("exposed_copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_trapdoor}
|
||||
*
|
||||
@@ -2657,6 +2776,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> EXPOSED_CUT_COPPER_STAIRS = create(key("exposed_cut_copper_stairs"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_lightning_rod}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> EXPOSED_LIGHTNING_ROD = create(key("exposed_lightning_rod"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:farmland}
|
||||
*
|
||||
@@ -3203,6 +3329,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> IRON_BLOCK = create(key("iron_block"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:iron_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> IRON_CHAIN = create(key("iron_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:iron_door}
|
||||
*
|
||||
@@ -3315,6 +3448,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> JUNGLE_SAPLING = create(key("jungle_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:jungle_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> JUNGLE_SHELF = create(key("jungle_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:jungle_sign}
|
||||
*
|
||||
@@ -3987,6 +4127,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> MANGROVE_ROOTS = create(key("mangrove_roots"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:mangrove_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> MANGROVE_SHELF = create(key("mangrove_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:mangrove_sign}
|
||||
*
|
||||
@@ -4358,6 +4505,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> OAK_SAPLING = create(key("oak_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oak_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> OAK_SHELF = create(key("oak_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oak_sign}
|
||||
*
|
||||
@@ -4561,6 +4715,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> OXIDIZED_COPPER = create(key("oxidized_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> OXIDIZED_COPPER_BARS = create(key("oxidized_copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_bulb}
|
||||
*
|
||||
@@ -4568,6 +4729,20 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> OXIDIZED_COPPER_BULB = create(key("oxidized_copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> OXIDIZED_COPPER_CHAIN = create(key("oxidized_copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> OXIDIZED_COPPER_CHEST = create(key("oxidized_copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_door}
|
||||
*
|
||||
@@ -4575,6 +4750,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> OXIDIZED_COPPER_DOOR = create(key("oxidized_copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> OXIDIZED_COPPER_GOLEM_STATUE = create(key("oxidized_copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_grate}
|
||||
*
|
||||
@@ -4582,6 +4764,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> OXIDIZED_COPPER_GRATE = create(key("oxidized_copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> OXIDIZED_COPPER_LANTERN = create(key("oxidized_copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_trapdoor}
|
||||
*
|
||||
@@ -4610,6 +4799,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> OXIDIZED_CUT_COPPER_STAIRS = create(key("oxidized_cut_copper_stairs"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_lightning_rod}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> OXIDIZED_LIGHTNING_ROD = create(key("oxidized_lightning_rod"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:packed_ice}
|
||||
*
|
||||
@@ -4715,6 +4911,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> PALE_OAK_SAPLING = create(key("pale_oak_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:pale_oak_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> PALE_OAK_SHELF = create(key("pale_oak_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:pale_oak_sign}
|
||||
*
|
||||
@@ -6437,6 +6640,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> SPRUCE_SAPLING = create(key("spruce_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:spruce_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> SPRUCE_SHELF = create(key("spruce_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:spruce_sign}
|
||||
*
|
||||
@@ -7102,6 +7312,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WARPED_ROOTS = create(key("warped_roots"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:warped_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WARPED_SHELF = create(key("warped_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:warped_sign}
|
||||
*
|
||||
@@ -7179,6 +7396,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_CHISELED_COPPER = create(key("waxed_chiseled_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_COPPER_BARS = create(key("waxed_copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_block}
|
||||
*
|
||||
@@ -7193,6 +7417,20 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_COPPER_BULB = create(key("waxed_copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_COPPER_CHAIN = create(key("waxed_copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_COPPER_CHEST = create(key("waxed_copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_door}
|
||||
*
|
||||
@@ -7200,6 +7438,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_COPPER_DOOR = create(key("waxed_copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_COPPER_GOLEM_STATUE = create(key("waxed_copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_grate}
|
||||
*
|
||||
@@ -7207,6 +7452,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_COPPER_GRATE = create(key("waxed_copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_COPPER_LANTERN = create(key("waxed_copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_trapdoor}
|
||||
*
|
||||
@@ -7249,6 +7501,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_EXPOSED_COPPER = create(key("waxed_exposed_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_EXPOSED_COPPER_BARS = create(key("waxed_exposed_copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_bulb}
|
||||
*
|
||||
@@ -7256,6 +7515,20 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_EXPOSED_COPPER_BULB = create(key("waxed_exposed_copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_EXPOSED_COPPER_CHAIN = create(key("waxed_exposed_copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_EXPOSED_COPPER_CHEST = create(key("waxed_exposed_copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_door}
|
||||
*
|
||||
@@ -7263,6 +7536,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_EXPOSED_COPPER_DOOR = create(key("waxed_exposed_copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_EXPOSED_COPPER_GOLEM_STATUE = create(key("waxed_exposed_copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_grate}
|
||||
*
|
||||
@@ -7270,6 +7550,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_EXPOSED_COPPER_GRATE = create(key("waxed_exposed_copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_EXPOSED_COPPER_LANTERN = create(key("waxed_exposed_copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_trapdoor}
|
||||
*
|
||||
@@ -7298,6 +7585,20 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_EXPOSED_CUT_COPPER_STAIRS = create(key("waxed_exposed_cut_copper_stairs"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_lightning_rod}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_EXPOSED_LIGHTNING_ROD = create(key("waxed_exposed_lightning_rod"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_lightning_rod}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_LIGHTNING_ROD = create(key("waxed_lightning_rod"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_chiseled_copper}
|
||||
*
|
||||
@@ -7312,6 +7613,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_OXIDIZED_COPPER = create(key("waxed_oxidized_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_OXIDIZED_COPPER_BARS = create(key("waxed_oxidized_copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_bulb}
|
||||
*
|
||||
@@ -7319,6 +7627,20 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_OXIDIZED_COPPER_BULB = create(key("waxed_oxidized_copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_OXIDIZED_COPPER_CHAIN = create(key("waxed_oxidized_copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_OXIDIZED_COPPER_CHEST = create(key("waxed_oxidized_copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_door}
|
||||
*
|
||||
@@ -7326,6 +7648,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_OXIDIZED_COPPER_DOOR = create(key("waxed_oxidized_copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_OXIDIZED_COPPER_GOLEM_STATUE = create(key("waxed_oxidized_copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_grate}
|
||||
*
|
||||
@@ -7333,6 +7662,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_OXIDIZED_COPPER_GRATE = create(key("waxed_oxidized_copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_OXIDIZED_COPPER_LANTERN = create(key("waxed_oxidized_copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_trapdoor}
|
||||
*
|
||||
@@ -7361,6 +7697,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_OXIDIZED_CUT_COPPER_STAIRS = create(key("waxed_oxidized_cut_copper_stairs"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_lightning_rod}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_OXIDIZED_LIGHTNING_ROD = create(key("waxed_oxidized_lightning_rod"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_chiseled_copper}
|
||||
*
|
||||
@@ -7375,6 +7718,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_WEATHERED_COPPER = create(key("waxed_weathered_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_WEATHERED_COPPER_BARS = create(key("waxed_weathered_copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_bulb}
|
||||
*
|
||||
@@ -7382,6 +7732,20 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_WEATHERED_COPPER_BULB = create(key("waxed_weathered_copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_WEATHERED_COPPER_CHAIN = create(key("waxed_weathered_copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_WEATHERED_COPPER_CHEST = create(key("waxed_weathered_copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_door}
|
||||
*
|
||||
@@ -7389,6 +7753,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_WEATHERED_COPPER_DOOR = create(key("waxed_weathered_copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_WEATHERED_COPPER_GOLEM_STATUE = create(key("waxed_weathered_copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_grate}
|
||||
*
|
||||
@@ -7396,6 +7767,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_WEATHERED_COPPER_GRATE = create(key("waxed_weathered_copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_WEATHERED_COPPER_LANTERN = create(key("waxed_weathered_copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_trapdoor}
|
||||
*
|
||||
@@ -7424,6 +7802,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_WEATHERED_CUT_COPPER_STAIRS = create(key("waxed_weathered_cut_copper_stairs"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_lightning_rod}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WAXED_WEATHERED_LIGHTNING_ROD = create(key("waxed_weathered_lightning_rod"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_chiseled_copper}
|
||||
*
|
||||
@@ -7438,6 +7823,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WEATHERED_COPPER = create(key("weathered_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WEATHERED_COPPER_BARS = create(key("weathered_copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_bulb}
|
||||
*
|
||||
@@ -7445,6 +7837,20 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WEATHERED_COPPER_BULB = create(key("weathered_copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WEATHERED_COPPER_CHAIN = create(key("weathered_copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WEATHERED_COPPER_CHEST = create(key("weathered_copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_door}
|
||||
*
|
||||
@@ -7452,6 +7858,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WEATHERED_COPPER_DOOR = create(key("weathered_copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WEATHERED_COPPER_GOLEM_STATUE = create(key("weathered_copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_grate}
|
||||
*
|
||||
@@ -7459,6 +7872,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WEATHERED_COPPER_GRATE = create(key("weathered_copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WEATHERED_COPPER_LANTERN = create(key("weathered_copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_trapdoor}
|
||||
*
|
||||
@@ -7487,6 +7907,13 @@ public final class BlockTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<BlockType> WEATHERED_CUT_COPPER_STAIRS = create(key("weathered_cut_copper_stairs"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_lightning_rod}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<BlockType> WEATHERED_LIGHTNING_ROD = create(key("weathered_lightning_rod"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weeping_vines}
|
||||
*
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class CatVariantKeys {
|
||||
/**
|
||||
* {@code minecraft:all_black}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class ChickenVariantKeys {
|
||||
/**
|
||||
* {@code minecraft:cold}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class CowVariantKeys {
|
||||
/**
|
||||
* {@code minecraft:cold}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class DamageTypeKeys {
|
||||
/**
|
||||
* {@code minecraft:arrow}
|
||||
|
||||
+2
-2
@@ -2,8 +2,8 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.datacomponent.DataComponentType;
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class DataComponentTypeKeys {
|
||||
/**
|
||||
* {@code minecraft:attribute_modifiers}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.dialog.Dialog;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
* Vanilla keys for {@link RegistryKey#DIALOG}.
|
||||
*
|
||||
* @apiNote The fields provided here are a direct representation of
|
||||
* what is available from the vanilla game source. They may be
|
||||
* changed (including removals) on any Minecraft version
|
||||
* bump, so cross-version compatibility is not provided on the
|
||||
* same level as it is on most of the other API.
|
||||
*/
|
||||
@SuppressWarnings({
|
||||
"unused",
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedClass
|
||||
public final class DialogKeys {
|
||||
/**
|
||||
* {@code minecraft:custom_options}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Dialog> CUSTOM_OPTIONS = create(key("custom_options"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:quick_actions}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Dialog> QUICK_ACTIONS = create(key("quick_actions"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:server_links}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Dialog> SERVER_LINKS = create(key("server_links"));
|
||||
|
||||
private DialogKeys() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a typed key for {@link Dialog} in the registry {@code minecraft:dialog}.
|
||||
*
|
||||
* @param key the value's key in the registry
|
||||
* @return a new typed key
|
||||
*/
|
||||
public static TypedKey<Dialog> create(final Key key) {
|
||||
return TypedKey.create(RegistryKey.DIALOG, key);
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class EnchantmentKeys {
|
||||
/**
|
||||
* {@code minecraft:aqua_affinity}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class FluidKeys {
|
||||
/**
|
||||
* {@code minecraft:empty}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class FrogVariantKeys {
|
||||
/**
|
||||
* {@code minecraft:cold}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class GameEventKeys {
|
||||
/**
|
||||
* {@code minecraft:block_activate}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class InstrumentKeys {
|
||||
/**
|
||||
* {@code minecraft:admire_goat_horn}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class ItemTypeKeys {
|
||||
/**
|
||||
* {@code minecraft:acacia_boat}
|
||||
@@ -109,6 +109,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> ACACIA_SAPLING = create(key("acacia_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:acacia_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> ACACIA_SHELF = create(key("acacia_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:acacia_sign}
|
||||
*
|
||||
@@ -431,6 +438,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> BAMBOO_RAFT = create(key("bamboo_raft"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:bamboo_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> BAMBOO_SHELF = create(key("bamboo_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:bamboo_sign}
|
||||
*
|
||||
@@ -648,6 +662,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> BIRCH_SAPLING = create(key("birch_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:birch_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> BIRCH_SHELF = create(key("birch_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:birch_sign}
|
||||
*
|
||||
@@ -1432,13 +1453,6 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> CAVE_SPIDER_SPAWN_EGG = create(key("cave_spider_spawn_egg"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> CHAIN = create(key("chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:chain_command_block}
|
||||
*
|
||||
@@ -1565,6 +1579,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> CHERRY_SAPLING = create(key("cherry_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:cherry_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> CHERRY_SHELF = create(key("cherry_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:cherry_sign}
|
||||
*
|
||||
@@ -1992,6 +2013,20 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> COOKIE = create(key("cookie"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_axe}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_AXE = create(key("copper_axe"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_BARS = create(key("copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_block}
|
||||
*
|
||||
@@ -1999,6 +2034,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_BLOCK = create(key("copper_block"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_boots}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_BOOTS = create(key("copper_boots"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_bulb}
|
||||
*
|
||||
@@ -2006,6 +2048,27 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_BULB = create(key("copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_CHAIN = create(key("copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_CHEST = create(key("copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_chestplate}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_CHESTPLATE = create(key("copper_chestplate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_door}
|
||||
*
|
||||
@@ -2013,6 +2076,20 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_DOOR = create(key("copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_golem_spawn_egg}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_GOLEM_SPAWN_EGG = create(key("copper_golem_spawn_egg"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_GOLEM_STATUE = create(key("copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_grate}
|
||||
*
|
||||
@@ -2020,6 +2097,27 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_GRATE = create(key("copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_helmet}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_HELMET = create(key("copper_helmet"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_hoe}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_HOE = create(key("copper_hoe"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_horse_armor}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_HORSE_ARMOR = create(key("copper_horse_armor"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_ingot}
|
||||
*
|
||||
@@ -2027,6 +2125,27 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_INGOT = create(key("copper_ingot"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_LANTERN = create(key("copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_leggings}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_LEGGINGS = create(key("copper_leggings"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_nugget}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_NUGGET = create(key("copper_nugget"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_ore}
|
||||
*
|
||||
@@ -2034,6 +2153,34 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_ORE = create(key("copper_ore"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_pickaxe}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_PICKAXE = create(key("copper_pickaxe"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_shovel}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_SHOVEL = create(key("copper_shovel"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_sword}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_SWORD = create(key("copper_sword"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_torch}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> COPPER_TORCH = create(key("copper_torch"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:copper_trapdoor}
|
||||
*
|
||||
@@ -2216,6 +2363,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> CRIMSON_ROOTS = create(key("crimson_roots"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:crimson_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> CRIMSON_SHELF = create(key("crimson_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:crimson_sign}
|
||||
*
|
||||
@@ -2524,6 +2678,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> DARK_OAK_SAPLING = create(key("dark_oak_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:dark_oak_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> DARK_OAK_SHELF = create(key("dark_oak_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:dark_oak_sign}
|
||||
*
|
||||
@@ -3273,6 +3434,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> EXPOSED_COPPER = create(key("exposed_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> EXPOSED_COPPER_BARS = create(key("exposed_copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_bulb}
|
||||
*
|
||||
@@ -3280,6 +3448,20 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> EXPOSED_COPPER_BULB = create(key("exposed_copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> EXPOSED_COPPER_CHAIN = create(key("exposed_copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> EXPOSED_COPPER_CHEST = create(key("exposed_copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_door}
|
||||
*
|
||||
@@ -3287,6 +3469,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> EXPOSED_COPPER_DOOR = create(key("exposed_copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> EXPOSED_COPPER_GOLEM_STATUE = create(key("exposed_copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_grate}
|
||||
*
|
||||
@@ -3294,6 +3483,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> EXPOSED_COPPER_GRATE = create(key("exposed_copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> EXPOSED_COPPER_LANTERN = create(key("exposed_copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_copper_trapdoor}
|
||||
*
|
||||
@@ -3322,6 +3518,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> EXPOSED_CUT_COPPER_STAIRS = create(key("exposed_cut_copper_stairs"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:exposed_lightning_rod}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> EXPOSED_LIGHTNING_ROD = create(key("exposed_lightning_rod"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:eye_armor_trim_smithing_template}
|
||||
*
|
||||
@@ -4302,6 +4505,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> IRON_BOOTS = create(key("iron_boots"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:iron_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> IRON_CHAIN = create(key("iron_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:iron_chestplate}
|
||||
*
|
||||
@@ -4512,6 +4722,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> JUNGLE_SAPLING = create(key("jungle_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:jungle_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> JUNGLE_SHELF = create(key("jungle_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:jungle_sign}
|
||||
*
|
||||
@@ -5296,6 +5513,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> MANGROVE_ROOTS = create(key("mangrove_roots"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:mangrove_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> MANGROVE_SHELF = create(key("mangrove_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:mangrove_sign}
|
||||
*
|
||||
@@ -5604,6 +5828,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> MUSIC_DISC_FAR = create(key("music_disc_far"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:music_disc_lava_chicken}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> MUSIC_DISC_LAVA_CHICKEN = create(key("music_disc_lava_chicken"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:music_disc_mall}
|
||||
*
|
||||
@@ -5982,6 +6213,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> OAK_SAPLING = create(key("oak_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oak_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> OAK_SHELF = create(key("oak_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oak_sign}
|
||||
*
|
||||
@@ -6199,6 +6437,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> OXIDIZED_COPPER = create(key("oxidized_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> OXIDIZED_COPPER_BARS = create(key("oxidized_copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_bulb}
|
||||
*
|
||||
@@ -6206,6 +6451,20 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> OXIDIZED_COPPER_BULB = create(key("oxidized_copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> OXIDIZED_COPPER_CHAIN = create(key("oxidized_copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> OXIDIZED_COPPER_CHEST = create(key("oxidized_copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_door}
|
||||
*
|
||||
@@ -6213,6 +6472,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> OXIDIZED_COPPER_DOOR = create(key("oxidized_copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> OXIDIZED_COPPER_GOLEM_STATUE = create(key("oxidized_copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_grate}
|
||||
*
|
||||
@@ -6220,6 +6486,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> OXIDIZED_COPPER_GRATE = create(key("oxidized_copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> OXIDIZED_COPPER_LANTERN = create(key("oxidized_copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_copper_trapdoor}
|
||||
*
|
||||
@@ -6248,6 +6521,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> OXIDIZED_CUT_COPPER_STAIRS = create(key("oxidized_cut_copper_stairs"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:oxidized_lightning_rod}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> OXIDIZED_LIGHTNING_ROD = create(key("oxidized_lightning_rod"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:packed_ice}
|
||||
*
|
||||
@@ -6374,6 +6654,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> PALE_OAK_SAPLING = create(key("pale_oak_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:pale_oak_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> PALE_OAK_SHELF = create(key("pale_oak_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:pale_oak_sign}
|
||||
*
|
||||
@@ -8292,6 +8579,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> SPRUCE_SAPLING = create(key("spruce_sapling"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:spruce_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> SPRUCE_SHELF = create(key("spruce_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:spruce_sign}
|
||||
*
|
||||
@@ -9153,6 +9447,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WARPED_ROOTS = create(key("warped_roots"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:warped_shelf}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WARPED_SHELF = create(key("warped_shelf"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:warped_sign}
|
||||
*
|
||||
@@ -9209,6 +9510,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_CHISELED_COPPER = create(key("waxed_chiseled_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_COPPER_BARS = create(key("waxed_copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_block}
|
||||
*
|
||||
@@ -9223,6 +9531,20 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_COPPER_BULB = create(key("waxed_copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_COPPER_CHAIN = create(key("waxed_copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_COPPER_CHEST = create(key("waxed_copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_door}
|
||||
*
|
||||
@@ -9230,6 +9552,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_COPPER_DOOR = create(key("waxed_copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_COPPER_GOLEM_STATUE = create(key("waxed_copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_grate}
|
||||
*
|
||||
@@ -9237,6 +9566,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_COPPER_GRATE = create(key("waxed_copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_COPPER_LANTERN = create(key("waxed_copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_copper_trapdoor}
|
||||
*
|
||||
@@ -9279,6 +9615,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_EXPOSED_COPPER = create(key("waxed_exposed_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_EXPOSED_COPPER_BARS = create(key("waxed_exposed_copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_bulb}
|
||||
*
|
||||
@@ -9286,6 +9629,20 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_EXPOSED_COPPER_BULB = create(key("waxed_exposed_copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_EXPOSED_COPPER_CHAIN = create(key("waxed_exposed_copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_EXPOSED_COPPER_CHEST = create(key("waxed_exposed_copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_door}
|
||||
*
|
||||
@@ -9293,6 +9650,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_EXPOSED_COPPER_DOOR = create(key("waxed_exposed_copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_EXPOSED_COPPER_GOLEM_STATUE = create(key("waxed_exposed_copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_grate}
|
||||
*
|
||||
@@ -9300,6 +9664,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_EXPOSED_COPPER_GRATE = create(key("waxed_exposed_copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_EXPOSED_COPPER_LANTERN = create(key("waxed_exposed_copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_copper_trapdoor}
|
||||
*
|
||||
@@ -9328,6 +9699,20 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_EXPOSED_CUT_COPPER_STAIRS = create(key("waxed_exposed_cut_copper_stairs"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_exposed_lightning_rod}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_EXPOSED_LIGHTNING_ROD = create(key("waxed_exposed_lightning_rod"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_lightning_rod}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_LIGHTNING_ROD = create(key("waxed_lightning_rod"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_chiseled_copper}
|
||||
*
|
||||
@@ -9342,6 +9727,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_OXIDIZED_COPPER = create(key("waxed_oxidized_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_OXIDIZED_COPPER_BARS = create(key("waxed_oxidized_copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_bulb}
|
||||
*
|
||||
@@ -9349,6 +9741,20 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_OXIDIZED_COPPER_BULB = create(key("waxed_oxidized_copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_OXIDIZED_COPPER_CHAIN = create(key("waxed_oxidized_copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_OXIDIZED_COPPER_CHEST = create(key("waxed_oxidized_copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_door}
|
||||
*
|
||||
@@ -9356,6 +9762,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_OXIDIZED_COPPER_DOOR = create(key("waxed_oxidized_copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_OXIDIZED_COPPER_GOLEM_STATUE = create(key("waxed_oxidized_copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_grate}
|
||||
*
|
||||
@@ -9363,6 +9776,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_OXIDIZED_COPPER_GRATE = create(key("waxed_oxidized_copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_OXIDIZED_COPPER_LANTERN = create(key("waxed_oxidized_copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_copper_trapdoor}
|
||||
*
|
||||
@@ -9391,6 +9811,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_OXIDIZED_CUT_COPPER_STAIRS = create(key("waxed_oxidized_cut_copper_stairs"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_oxidized_lightning_rod}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_OXIDIZED_LIGHTNING_ROD = create(key("waxed_oxidized_lightning_rod"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_chiseled_copper}
|
||||
*
|
||||
@@ -9405,6 +9832,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_WEATHERED_COPPER = create(key("waxed_weathered_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_WEATHERED_COPPER_BARS = create(key("waxed_weathered_copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_bulb}
|
||||
*
|
||||
@@ -9412,6 +9846,20 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_WEATHERED_COPPER_BULB = create(key("waxed_weathered_copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_WEATHERED_COPPER_CHAIN = create(key("waxed_weathered_copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_WEATHERED_COPPER_CHEST = create(key("waxed_weathered_copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_door}
|
||||
*
|
||||
@@ -9419,6 +9867,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_WEATHERED_COPPER_DOOR = create(key("waxed_weathered_copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_WEATHERED_COPPER_GOLEM_STATUE = create(key("waxed_weathered_copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_grate}
|
||||
*
|
||||
@@ -9426,6 +9881,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_WEATHERED_COPPER_GRATE = create(key("waxed_weathered_copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_WEATHERED_COPPER_LANTERN = create(key("waxed_weathered_copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_copper_trapdoor}
|
||||
*
|
||||
@@ -9454,6 +9916,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_WEATHERED_CUT_COPPER_STAIRS = create(key("waxed_weathered_cut_copper_stairs"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:waxed_weathered_lightning_rod}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WAXED_WEATHERED_LIGHTNING_ROD = create(key("waxed_weathered_lightning_rod"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:wayfinder_armor_trim_smithing_template}
|
||||
*
|
||||
@@ -9475,6 +9944,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WEATHERED_COPPER = create(key("weathered_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WEATHERED_COPPER_BARS = create(key("weathered_copper_bars"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_bulb}
|
||||
*
|
||||
@@ -9482,6 +9958,20 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WEATHERED_COPPER_BULB = create(key("weathered_copper_bulb"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_chain}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WEATHERED_COPPER_CHAIN = create(key("weathered_copper_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_chest}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WEATHERED_COPPER_CHEST = create(key("weathered_copper_chest"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_door}
|
||||
*
|
||||
@@ -9489,6 +9979,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WEATHERED_COPPER_DOOR = create(key("weathered_copper_door"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_golem_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WEATHERED_COPPER_GOLEM_STATUE = create(key("weathered_copper_golem_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_grate}
|
||||
*
|
||||
@@ -9496,6 +9993,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WEATHERED_COPPER_GRATE = create(key("weathered_copper_grate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_lantern}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WEATHERED_COPPER_LANTERN = create(key("weathered_copper_lantern"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_copper_trapdoor}
|
||||
*
|
||||
@@ -9524,6 +10028,13 @@ public final class ItemTypeKeys {
|
||||
*/
|
||||
public static final TypedKey<ItemType> WEATHERED_CUT_COPPER_STAIRS = create(key("weathered_cut_copper_stairs"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weathered_lightning_rod}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<ItemType> WEATHERED_LIGHTNING_ROD = create(key("weathered_lightning_rod"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weeping_vines}
|
||||
*
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class JukeboxSongKeys {
|
||||
/**
|
||||
* {@code minecraft:11}
|
||||
@@ -88,6 +88,13 @@ public final class JukeboxSongKeys {
|
||||
*/
|
||||
public static final TypedKey<JukeboxSong> FAR = create(key("far"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:lava_chicken}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<JukeboxSong> LAVA_CHICKEN = create(key("lava_chicken"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:mall}
|
||||
*
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class MapDecorationTypeKeys {
|
||||
/**
|
||||
* {@code minecraft:banner_black}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class MenuTypeKeys {
|
||||
/**
|
||||
* {@code minecraft:anvil}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class MobEffectKeys {
|
||||
/**
|
||||
* {@code minecraft:absorption}
|
||||
|
||||
+9
-2
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class PaintingVariantKeys {
|
||||
/**
|
||||
* {@code minecraft:alban}
|
||||
@@ -123,6 +123,13 @@ public final class PaintingVariantKeys {
|
||||
*/
|
||||
public static final TypedKey<Art> CREEBET = create(key("creebet"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:dennis}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Art> DENNIS = create(key("dennis"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:donkey_kong}
|
||||
*
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class PigVariantKeys {
|
||||
/**
|
||||
* {@code minecraft:cold}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class SoundEventKeys {
|
||||
/**
|
||||
* {@code minecraft:ambient.basalt_deltas.additions}
|
||||
@@ -1565,6 +1565,48 @@ public final class SoundEventKeys {
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_COPPER_BULB_TURN_ON = create(key("block.copper_bulb.turn_on"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.copper_chest.close}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_COPPER_CHEST_CLOSE = create(key("block.copper_chest.close"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.copper_chest.open}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_COPPER_CHEST_OPEN = create(key("block.copper_chest.open"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.copper_chest_oxidized.close}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_COPPER_CHEST_OXIDIZED_CLOSE = create(key("block.copper_chest_oxidized.close"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.copper_chest_oxidized.open}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_COPPER_CHEST_OXIDIZED_OPEN = create(key("block.copper_chest_oxidized.open"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.copper_chest_weathered.close}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_COPPER_CHEST_WEATHERED_CLOSE = create(key("block.copper_chest_weathered.close"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.copper_chest_weathered.open}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_COPPER_CHEST_WEATHERED_OPEN = create(key("block.copper_chest_weathered.open"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.copper_door.close}
|
||||
*
|
||||
@@ -1579,6 +1621,41 @@ public final class SoundEventKeys {
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_COPPER_DOOR_OPEN = create(key("block.copper_door.open"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.copper_golem_statue.break}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_COPPER_GOLEM_STATUE_BREAK = create(key("block.copper_golem_statue.break"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.copper_golem_statue.fall}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_COPPER_GOLEM_STATUE_FALL = create(key("block.copper_golem_statue.fall"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.copper_golem_statue.hit}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_COPPER_GOLEM_STATUE_HIT = create(key("block.copper_golem_statue.hit"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.copper_golem_statue.place}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_COPPER_GOLEM_STATUE_PLACE = create(key("block.copper_golem_statue.place"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.copper_golem_statue.step}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_COPPER_GOLEM_STATUE_STEP = create(key("block.copper_golem_statue.step"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.copper_grate.break}
|
||||
*
|
||||
@@ -4428,6 +4505,83 @@ public final class SoundEventKeys {
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_SCULK_VEIN_STEP = create(key("block.sculk_vein.step"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.shelf.activate}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_SHELF_ACTIVATE = create(key("block.shelf.activate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.shelf.break}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_SHELF_BREAK = create(key("block.shelf.break"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.shelf.deactivate}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_SHELF_DEACTIVATE = create(key("block.shelf.deactivate"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.shelf.fall}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_SHELF_FALL = create(key("block.shelf.fall"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.shelf.hit}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_SHELF_HIT = create(key("block.shelf.hit"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.shelf.multi_swap}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_SHELF_MULTI_SWAP = create(key("block.shelf.multi_swap"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.shelf.place}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_SHELF_PLACE = create(key("block.shelf.place"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.shelf.place_item}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_SHELF_PLACE_ITEM = create(key("block.shelf.place_item"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.shelf.single_swap}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_SHELF_SINGLE_SWAP = create(key("block.shelf.single_swap"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.shelf.step}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_SHELF_STEP = create(key("block.shelf.step"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.shelf.take_item}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> BLOCK_SHELF_TAKE_ITEM = create(key("block.shelf.take_item"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:block.shroomlight.break}
|
||||
*
|
||||
@@ -6332,6 +6486,139 @@ public final class SoundEventKeys {
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COD_HURT = create(key("entity.cod.hurt"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem.death}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_DEATH = create(key("entity.copper_golem.death"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem.hurt}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_HURT = create(key("entity.copper_golem.hurt"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem.item_drop}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_ITEM_DROP = create(key("entity.copper_golem.item_drop"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem.item_no_drop}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_ITEM_NO_DROP = create(key("entity.copper_golem.item_no_drop"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem.no_item_get}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_NO_ITEM_GET = create(key("entity.copper_golem.no_item_get"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem.no_item_no_get}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_NO_ITEM_NO_GET = create(key("entity.copper_golem.no_item_no_get"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem.shear}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_SHEAR = create(key("entity.copper_golem.shear"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem.spawn}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_SPAWN = create(key("entity.copper_golem.spawn"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem.spin}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_SPIN = create(key("entity.copper_golem.spin"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem.step}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_STEP = create(key("entity.copper_golem.step"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem_become_statue}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_BECOME_STATUE = create(key("entity.copper_golem_become_statue"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem_oxidized.death}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_OXIDIZED_DEATH = create(key("entity.copper_golem_oxidized.death"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem_oxidized.hurt}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_OXIDIZED_HURT = create(key("entity.copper_golem_oxidized.hurt"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem_oxidized.spin}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_OXIDIZED_SPIN = create(key("entity.copper_golem_oxidized.spin"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem_oxidized.step}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_OXIDIZED_STEP = create(key("entity.copper_golem_oxidized.step"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem_weathered.death}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_WEATHERED_DEATH = create(key("entity.copper_golem_weathered.death"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem_weathered.hurt}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_WEATHERED_HURT = create(key("entity.copper_golem_weathered.hurt"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem_weathered.spin}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_WEATHERED_SPIN = create(key("entity.copper_golem_weathered.spin"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.copper_golem_weathered.step}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ENTITY_COPPER_GOLEM_WEATHERED_STEP = create(key("entity.copper_golem_weathered.step"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:entity.cow.ambient}
|
||||
*
|
||||
@@ -10980,6 +11267,13 @@ public final class SoundEventKeys {
|
||||
*/
|
||||
public static final TypedKey<Sound> ITEM_ARMOR_EQUIP_CHAIN = create(key("item.armor.equip_chain"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:item.armor.equip_copper}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> ITEM_ARMOR_EQUIP_COPPER = create(key("item.armor.equip_copper"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:item.armor.equip_diamond}
|
||||
*
|
||||
@@ -11946,6 +12240,13 @@ public final class SoundEventKeys {
|
||||
*/
|
||||
public static final TypedKey<Sound> MUSIC_DISC_FAR = create(key("music_disc.far"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:music_disc.lava_chicken}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> MUSIC_DISC_LAVA_CHICKEN = create(key("music_disc.lava_chicken"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:music_disc.mall}
|
||||
*
|
||||
@@ -12100,6 +12401,13 @@ public final class SoundEventKeys {
|
||||
*/
|
||||
public static final TypedKey<Sound> UI_TOAST_OUT = create(key("ui.toast.out"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weather.end_flash}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TypedKey<Sound> WEATHER_END_FLASH = create(key("weather.end_flash"));
|
||||
|
||||
/**
|
||||
* {@code minecraft:weather.rain}
|
||||
*
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class StructureKeys {
|
||||
/**
|
||||
* {@code minecraft:ancient_city}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class StructureTypeKeys {
|
||||
/**
|
||||
* {@code minecraft:buried_treasure}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class TrimMaterialKeys {
|
||||
/**
|
||||
* {@code minecraft:amethyst}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class TrimPatternKeys {
|
||||
/**
|
||||
* {@code minecraft:bolt}
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class VillagerProfessionKeys {
|
||||
/**
|
||||
* {@code minecraft:armorer}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class VillagerTypeKeys {
|
||||
/**
|
||||
* {@code minecraft:desert}
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class WolfSoundVariantKeys {
|
||||
/**
|
||||
* {@code minecraft:angry}
|
||||
|
||||
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -23,7 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@GeneratedClass
|
||||
public final class WolfVariantKeys {
|
||||
/**
|
||||
* {@code minecraft:ashen}
|
||||
|
||||
+2
-5
@@ -2,12 +2,11 @@ package io.papermc.paper.registry.keys.tags;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.tag.TagKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import org.bukkit.block.banner.PatternType;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
@@ -24,8 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@ApiStatus.Experimental
|
||||
@GeneratedClass
|
||||
public final class BannerPatternTagKeys {
|
||||
/**
|
||||
* {@code #minecraft:no_item_required}
|
||||
@@ -113,7 +111,6 @@ public final class BannerPatternTagKeys {
|
||||
* @param key the tag key's key
|
||||
* @return a new tag key
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static TagKey<PatternType> create(final Key key) {
|
||||
return TagKey.create(RegistryKey.BANNER_PATTERN, key);
|
||||
}
|
||||
|
||||
@@ -2,12 +2,11 @@ package io.papermc.paper.registry.keys.tags;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.tag.TagKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import org.bukkit.block.Biome;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
@@ -24,8 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@ApiStatus.Experimental
|
||||
@GeneratedClass
|
||||
public final class BiomeTagKeys {
|
||||
/**
|
||||
* {@code #minecraft:allows_surface_slime_spawns}
|
||||
@@ -540,7 +538,6 @@ public final class BiomeTagKeys {
|
||||
* @param key the tag key's key
|
||||
* @return a new tag key
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static TagKey<Biome> create(final Key key) {
|
||||
return TagKey.create(RegistryKey.BIOME, key);
|
||||
}
|
||||
|
||||
+65
-5
@@ -2,12 +2,11 @@ package io.papermc.paper.registry.keys.tags;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.tag.TagKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import org.bukkit.block.BlockType;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
@@ -24,8 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@ApiStatus.Experimental
|
||||
@GeneratedClass
|
||||
public final class BlockTypeTagKeys {
|
||||
/**
|
||||
* {@code #minecraft:acacia_logs}
|
||||
@@ -132,6 +130,13 @@ public final class BlockTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<BlockType> BANNERS = create(key("banners"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<BlockType> BARS = create(key("bars"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:base_stone_nether}
|
||||
*
|
||||
@@ -272,6 +277,13 @@ public final class BlockTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<BlockType> CEILING_HANGING_SIGNS = create(key("ceiling_hanging_signs"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:chains}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<BlockType> CHAINS = create(key("chains"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:cherry_logs}
|
||||
*
|
||||
@@ -321,6 +333,27 @@ public final class BlockTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<BlockType> CONVERTABLE_TO_MUD = create(key("convertable_to_mud"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:copper}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<BlockType> COPPER = create(key("copper"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:copper_chests}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<BlockType> COPPER_CHESTS = create(key("copper_chests"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:copper_golem_statues}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<BlockType> COPPER_GOLEM_STATUES = create(key("copper_golem_statues"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:copper_ores}
|
||||
*
|
||||
@@ -608,6 +641,13 @@ public final class BlockTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<BlockType> IMPERMEABLE = create(key("impermeable"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:incorrect_for_copper_tool}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<BlockType> INCORRECT_FOR_COPPER_TOOL = create(key("incorrect_for_copper_tool"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:incorrect_for_diamond_tool}
|
||||
*
|
||||
@@ -699,6 +739,13 @@ public final class BlockTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<BlockType> JUNGLE_LOGS = create(key("jungle_logs"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:lanterns}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<BlockType> LANTERNS = create(key("lanterns"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:lapis_ores}
|
||||
*
|
||||
@@ -720,6 +767,13 @@ public final class BlockTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<BlockType> LEAVES = create(key("leaves"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:lightning_rods}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<BlockType> LIGHTNING_RODS = create(key("lightning_rods"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:logs}
|
||||
*
|
||||
@@ -1350,6 +1404,13 @@ public final class BlockTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<BlockType> WOODEN_PRESSURE_PLATES = create(key("wooden_pressure_plates"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:wooden_shelves}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<BlockType> WOODEN_SHELVES = create(key("wooden_shelves"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:wooden_slabs}
|
||||
*
|
||||
@@ -1394,7 +1455,6 @@ public final class BlockTypeTagKeys {
|
||||
* @param key the tag key's key
|
||||
* @return a new tag key
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static TagKey<BlockType> create(final Key key) {
|
||||
return TagKey.create(RegistryKey.BLOCK, key);
|
||||
}
|
||||
|
||||
+2
-5
@@ -2,12 +2,11 @@ package io.papermc.paper.registry.keys.tags;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.tag.TagKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import org.bukkit.damage.DamageType;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
@@ -24,8 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@ApiStatus.Experimental
|
||||
@GeneratedClass
|
||||
public final class DamageTypeTagKeys {
|
||||
/**
|
||||
* {@code #minecraft:always_hurts_ender_dragons}
|
||||
@@ -267,7 +265,6 @@ public final class DamageTypeTagKeys {
|
||||
* @param key the tag key's key
|
||||
* @return a new tag key
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static TagKey<DamageType> create(final Key key) {
|
||||
return TagKey.create(RegistryKey.DAMAGE_TYPE, key);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package io.papermc.paper.registry.keys.tags;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.dialog.Dialog;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.tag.TagKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
* Vanilla tag keys for {@link RegistryKey#DIALOG}.
|
||||
*
|
||||
* @apiNote The fields provided here are a direct representation of
|
||||
* what is available from the vanilla game source. They may be
|
||||
* changed (including removals) on any Minecraft version
|
||||
* bump, so cross-version compatibility is not provided on the
|
||||
* same level as it is on most of the other API.
|
||||
*/
|
||||
@SuppressWarnings({
|
||||
"unused",
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedClass
|
||||
public final class DialogTagKeys {
|
||||
/**
|
||||
* {@code #minecraft:pause_screen_additions}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<Dialog> PAUSE_SCREEN_ADDITIONS = create(key("pause_screen_additions"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:quick_actions}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<Dialog> QUICK_ACTIONS = create(key("quick_actions"));
|
||||
|
||||
private DialogTagKeys() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a tag key for {@link Dialog} in the registry {@code minecraft:dialog}.
|
||||
*
|
||||
* @param key the tag key's key
|
||||
* @return a new tag key
|
||||
*/
|
||||
public static TagKey<Dialog> create(final Key key) {
|
||||
return TagKey.create(RegistryKey.DIALOG, key);
|
||||
}
|
||||
}
|
||||
+2
-4
@@ -2,7 +2,7 @@ package io.papermc.paper.registry.keys.tags;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.tag.TagKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
@@ -25,8 +25,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@ApiStatus.Experimental
|
||||
@GeneratedClass
|
||||
public final class EnchantmentTagKeys {
|
||||
/**
|
||||
* {@code #minecraft:curse}
|
||||
@@ -317,7 +316,6 @@ public final class EnchantmentTagKeys {
|
||||
* @param key the tag key's key
|
||||
* @return a new tag key
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static TagKey<Enchantment> create(final Key key) {
|
||||
return TagKey.create(RegistryKey.ENCHANTMENT, key);
|
||||
}
|
||||
|
||||
+23
-5
@@ -2,12 +2,11 @@ package io.papermc.paper.registry.keys.tags;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.tag.TagKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
@@ -24,9 +23,15 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@ApiStatus.Experimental
|
||||
@GeneratedClass
|
||||
public final class EntityTypeTagKeys {
|
||||
/**
|
||||
* {@code #minecraft:accepts_iron_golem_gift}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<EntityType> ACCEPTS_IRON_GOLEM_GIFT = create(key("accepts_iron_golem_gift"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:aquatic}
|
||||
*
|
||||
@@ -111,6 +116,20 @@ public final class EntityTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<EntityType> CAN_WEAR_HORSE_ARMOR = create(key("can_wear_horse_armor"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:candidate_for_iron_golem_gift}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<EntityType> CANDIDATE_FOR_IRON_GOLEM_GIFT = create(key("candidate_for_iron_golem_gift"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:cannot_be_pushed_onto_boats}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<EntityType> CANNOT_BE_PUSHED_ONTO_BOATS = create(key("cannot_be_pushed_onto_boats"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:deflects_projectiles}
|
||||
*
|
||||
@@ -309,7 +328,6 @@ public final class EntityTypeTagKeys {
|
||||
* @param key the tag key's key
|
||||
* @return a new tag key
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static TagKey<EntityType> create(final Key key) {
|
||||
return TagKey.create(RegistryKey.ENTITY_TYPE, key);
|
||||
}
|
||||
|
||||
@@ -2,12 +2,11 @@ package io.papermc.paper.registry.keys.tags;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.tag.TagKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import org.bukkit.Fluid;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
@@ -24,8 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@ApiStatus.Experimental
|
||||
@GeneratedClass
|
||||
public final class FluidTagKeys {
|
||||
/**
|
||||
* {@code #minecraft:lava}
|
||||
@@ -50,7 +48,6 @@ public final class FluidTagKeys {
|
||||
* @param key the tag key's key
|
||||
* @return a new tag key
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static TagKey<Fluid> create(final Key key) {
|
||||
return TagKey.create(RegistryKey.FLUID, key);
|
||||
}
|
||||
|
||||
+2
-5
@@ -2,12 +2,11 @@ package io.papermc.paper.registry.keys.tags;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.tag.TagKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import org.bukkit.GameEvent;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
@@ -24,8 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@ApiStatus.Experimental
|
||||
@GeneratedClass
|
||||
public final class GameEventTagKeys {
|
||||
/**
|
||||
* {@code #minecraft:allay_can_listen}
|
||||
@@ -71,7 +69,6 @@ public final class GameEventTagKeys {
|
||||
* @param key the tag key's key
|
||||
* @return a new tag key
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static TagKey<GameEvent> create(final Key key) {
|
||||
return TagKey.create(RegistryKey.GAME_EVENT, key);
|
||||
}
|
||||
|
||||
+2
-5
@@ -2,12 +2,11 @@ package io.papermc.paper.registry.keys.tags;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.tag.TagKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import org.bukkit.MusicInstrument;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
@@ -24,8 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@ApiStatus.Experimental
|
||||
@GeneratedClass
|
||||
public final class InstrumentTagKeys {
|
||||
/**
|
||||
* {@code #minecraft:goat_horns}
|
||||
@@ -57,7 +55,6 @@ public final class InstrumentTagKeys {
|
||||
* @param key the tag key's key
|
||||
* @return a new tag key
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static TagKey<MusicInstrument> create(final Key key) {
|
||||
return TagKey.create(RegistryKey.INSTRUMENT, key);
|
||||
}
|
||||
|
||||
+79
-5
@@ -2,12 +2,11 @@ package io.papermc.paper.registry.keys.tags;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.tag.TagKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import org.bukkit.inventory.ItemType;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
@@ -24,8 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@ApiStatus.Experimental
|
||||
@GeneratedClass
|
||||
public final class ItemTypeTagKeys {
|
||||
/**
|
||||
* {@code #minecraft:acacia_logs}
|
||||
@@ -83,6 +81,13 @@ public final class ItemTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<ItemType> BANNERS = create(key("banners"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:bars}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<ItemType> BARS = create(key("bars"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:beacon_payment_items}
|
||||
*
|
||||
@@ -181,6 +186,13 @@ public final class ItemTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<ItemType> CAT_FOOD = create(key("cat_food"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:chains}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<ItemType> CHAINS = create(key("chains"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:cherry_logs}
|
||||
*
|
||||
@@ -244,6 +256,27 @@ public final class ItemTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<ItemType> COMPLETES_FIND_TREE_TUTORIAL = create(key("completes_find_tree_tutorial"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:copper}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<ItemType> COPPER = create(key("copper"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:copper_chests}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<ItemType> COPPER_CHESTS = create(key("copper_chests"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:copper_golem_statues}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<ItemType> COPPER_GOLEM_STATUES = create(key("copper_golem_statues"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:copper_ores}
|
||||
*
|
||||
@@ -251,6 +284,13 @@ public final class ItemTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<ItemType> COPPER_ORES = create(key("copper_ores"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:copper_tool_materials}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<ItemType> COPPER_TOOL_MATERIALS = create(key("copper_tool_materials"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:cow_food}
|
||||
*
|
||||
@@ -685,6 +725,13 @@ public final class ItemTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<ItemType> JUNGLE_LOGS = create(key("jungle_logs"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:lanterns}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<ItemType> LANTERNS = create(key("lanterns"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:lapis_ores}
|
||||
*
|
||||
@@ -713,6 +760,13 @@ public final class ItemTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<ItemType> LEG_ARMOR = create(key("leg_armor"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:lightning_rods}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<ItemType> LIGHTNING_RODS = create(key("lightning_rods"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:llama_food}
|
||||
*
|
||||
@@ -923,6 +977,13 @@ public final class ItemTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<ItemType> REPAIRS_CHAIN_ARMOR = create(key("repairs_chain_armor"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:repairs_copper_armor}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<ItemType> REPAIRS_COPPER_ARMOR = create(key("repairs_copper_armor"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:repairs_diamond_armor}
|
||||
*
|
||||
@@ -986,6 +1047,13 @@ public final class ItemTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<ItemType> SAPLINGS = create(key("saplings"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:shearable_from_copper_golem}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<ItemType> SHEARABLE_FROM_COPPER_GOLEM = create(key("shearable_from_copper_golem"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:sheep_food}
|
||||
*
|
||||
@@ -1238,6 +1306,13 @@ public final class ItemTypeTagKeys {
|
||||
*/
|
||||
public static final TagKey<ItemType> WOODEN_PRESSURE_PLATES = create(key("wooden_pressure_plates"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:wooden_shelves}
|
||||
*
|
||||
* @apiNote This field is version-dependant and may be removed in future Minecraft versions
|
||||
*/
|
||||
public static final TagKey<ItemType> WOODEN_SHELVES = create(key("wooden_shelves"));
|
||||
|
||||
/**
|
||||
* {@code #minecraft:wooden_slabs}
|
||||
*
|
||||
@@ -1289,7 +1364,6 @@ public final class ItemTypeTagKeys {
|
||||
* @param key the tag key's key
|
||||
* @return a new tag key
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static TagKey<ItemType> create(final Key key) {
|
||||
return TagKey.create(RegistryKey.ITEM, key);
|
||||
}
|
||||
|
||||
+2
-5
@@ -2,12 +2,11 @@ package io.papermc.paper.registry.keys.tags;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.tag.TagKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import org.bukkit.Art;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
@@ -24,8 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@ApiStatus.Experimental
|
||||
@GeneratedClass
|
||||
public final class PaintingVariantTagKeys {
|
||||
/**
|
||||
* {@code #minecraft:placeable}
|
||||
@@ -43,7 +41,6 @@ public final class PaintingVariantTagKeys {
|
||||
* @param key the tag key's key
|
||||
* @return a new tag key
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static TagKey<Art> create(final Key key) {
|
||||
return TagKey.create(RegistryKey.PAINTING_VARIANT, key);
|
||||
}
|
||||
|
||||
+2
-5
@@ -2,12 +2,11 @@ package io.papermc.paper.registry.keys.tags;
|
||||
|
||||
import static net.kyori.adventure.key.Key.key;
|
||||
|
||||
import io.papermc.paper.generated.GeneratedFrom;
|
||||
import io.papermc.paper.annotation.GeneratedClass;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.tag.TagKey;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import org.bukkit.generator.structure.Structure;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
@@ -24,8 +23,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
"SpellCheckingInspection"
|
||||
})
|
||||
@NullMarked
|
||||
@GeneratedFrom("1.21.6")
|
||||
@ApiStatus.Experimental
|
||||
@GeneratedClass
|
||||
public final class StructureTagKeys {
|
||||
/**
|
||||
* {@code #minecraft:cats_spawn_as_black}
|
||||
@@ -176,7 +174,6 @@ public final class StructureTagKeys {
|
||||
* @param key the tag key's key
|
||||
* @return a new tag key
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static TagKey<Structure> create(final Key key) {
|
||||
return TagKey.create(RegistryKey.STRUCTURE, key);
|
||||
}
|
||||
|
||||
@@ -51,8 +51,7 @@ import static co.aikar.timings.TimingsManager.MINUTE_REPORTS;
|
||||
import static co.aikar.util.JSONUtil.*;
|
||||
|
||||
/**
|
||||
* Internal.
|
||||
*
|
||||
* @hidden
|
||||
* @deprecated Timings will be removed in the future
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
|
||||
@@ -82,9 +82,9 @@ public class LoadingMap <K, V> extends AbstractMap<K, V> {
|
||||
/**
|
||||
* Creates a LoadingMap with an auto instantiating loader.
|
||||
*
|
||||
* Will auto construct class of of Value when not found
|
||||
* Will auto construct class of Value when not found
|
||||
*
|
||||
* Since this uses Reflection, It is more effecient to define your own static loader
|
||||
* Since this uses Reflection, It is more efficient to define your own static loader
|
||||
* than using this helper, but if performance is not critical, this is easier.
|
||||
*
|
||||
* @param backingMap Actual map being used.
|
||||
@@ -102,9 +102,9 @@ public class LoadingMap <K, V> extends AbstractMap<K, V> {
|
||||
/**
|
||||
* Creates a LoadingMap with an auto instantiating loader.
|
||||
*
|
||||
* Will auto construct class of of Value when not found
|
||||
* Will auto construct class of Value when not found
|
||||
*
|
||||
* Since this uses Reflection, It is more effecient to define your own static loader
|
||||
* Since this uses Reflection, It is more efficient to define your own static loader
|
||||
* than using this helper, but if performance is not critical, this is easier.
|
||||
*
|
||||
* @param backingMap Actual map being used.
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.destroystokyo.paper;
|
||||
|
||||
import java.util.Locale;
|
||||
import net.kyori.adventure.translation.Translatable;
|
||||
import net.kyori.adventure.util.Index;
|
||||
import org.bukkit.inventory.MainHand;
|
||||
@@ -29,9 +30,11 @@ public final class ClientOption<T> {
|
||||
}
|
||||
|
||||
public enum ChatVisibility implements Translatable {
|
||||
FULL("full"),
|
||||
SYSTEM("system"),
|
||||
HIDDEN("hidden"),
|
||||
// Start generate - ChatVisibility
|
||||
FULL("options.chat.visibility.full"),
|
||||
SYSTEM("options.chat.visibility.system"),
|
||||
HIDDEN("options.chat.visibility.hidden"),
|
||||
// End generate - ChatVisibility
|
||||
/**
|
||||
* @deprecated no longer used anymore since 1.15.2, the value fallback
|
||||
* to the default value of the setting when unknown on the server.
|
||||
@@ -40,37 +43,39 @@ public final class ClientOption<T> {
|
||||
@Deprecated(since = "1.15.2", forRemoval = true)
|
||||
UNKNOWN("unknown");
|
||||
|
||||
public static final Index<String, ChatVisibility> NAMES = Index.create(ChatVisibility.class, chatVisibility -> chatVisibility.name);
|
||||
private final String name;
|
||||
public static final Index<String, ChatVisibility> NAMES = Index.create(ChatVisibility.class, chatVisibility -> chatVisibility.name().toLowerCase(Locale.ENGLISH));
|
||||
private final String translationKey;
|
||||
|
||||
ChatVisibility(final String name) {
|
||||
this.name = name;
|
||||
ChatVisibility(final String translationKey) {
|
||||
this.translationKey = translationKey;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String translationKey() {
|
||||
if (this == UNKNOWN) {
|
||||
throw new UnsupportedOperationException(this.name + " doesn't have a translation key");
|
||||
throw new UnsupportedOperationException(this.name() + " doesn't have a translation key");
|
||||
}
|
||||
return "options.chat.visibility." + this.name;
|
||||
return this.translationKey;
|
||||
}
|
||||
}
|
||||
|
||||
public enum ParticleVisibility implements Translatable {
|
||||
ALL("all"),
|
||||
DECREASED("decreased"),
|
||||
MINIMAL("minimal");
|
||||
// Start generate - ParticleVisibility
|
||||
ALL("options.particles.all"),
|
||||
DECREASED("options.particles.decreased"),
|
||||
MINIMAL("options.particles.minimal");
|
||||
// End generate - ParticleVisibility
|
||||
|
||||
public static final Index<String, ParticleVisibility> NAMES = Index.create(ParticleVisibility.class, particleVisibility -> particleVisibility.name);
|
||||
private final String name;
|
||||
public static final Index<String, ParticleVisibility> NAMES = Index.create(ParticleVisibility.class, particleVisibility -> particleVisibility.name().toLowerCase(Locale.ENGLISH));
|
||||
private final String translationKey;
|
||||
|
||||
ParticleVisibility(final String name) {
|
||||
this.name = name;
|
||||
ParticleVisibility(final String translationKey) {
|
||||
this.translationKey = translationKey;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String translationKey() {
|
||||
return "options.particles." + this.name;
|
||||
return this.translationKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,18 +6,17 @@ package com.destroystokyo.paper;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import io.papermc.paper.tag.BaseTag;
|
||||
import java.util.Collection;
|
||||
import java.util.Set;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.NamespacedKey;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.block.BlockState;
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Set;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -94,7 +93,8 @@ public class MaterialSetTag extends BaseTag<Material, MaterialSetTag> {
|
||||
return isTagged(item.getType());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTagged(@NotNull Material material) {
|
||||
return this.tagged.contains(material);
|
||||
return super.isTagged(material);
|
||||
}
|
||||
}
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
package com.destroystokyo.paper;
|
||||
|
||||
import java.util.Objects;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.NamespacedKey;
|
||||
import org.bukkit.Tag;
|
||||
@@ -38,19 +39,32 @@ import org.bukkit.Tag;
|
||||
public class MaterialTags {
|
||||
|
||||
private static NamespacedKey keyFor(String key) {
|
||||
//noinspection deprecation
|
||||
return new NamespacedKey("paper", key + "_settag");
|
||||
}
|
||||
public static final MaterialSetTag ARROWS = new MaterialSetTag(keyFor("arrows"))
|
||||
.endsWith("ARROW")
|
||||
.ensureSize("ARROWS", 3).lock();
|
||||
|
||||
private static MaterialSetTag replacedBy(Tag<Material> vanillaTag) {
|
||||
return replacedBy(vanillaTag, Objects.requireNonNull(vanillaTag).key().value());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private static MaterialSetTag replacedBy(Tag<Material> vanillaTag, String legacyKey) {
|
||||
Objects.requireNonNull(vanillaTag);
|
||||
return new MaterialSetTag(keyFor(legacyKey)).add(vanillaTag).lock();
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated in favour of {@link Tag#ITEMS_ARROWS}
|
||||
*/
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag ARROWS = replacedBy(Tag.ITEMS_ARROWS);
|
||||
|
||||
/**
|
||||
* Covers all colors of beds.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#BEDS}
|
||||
*/
|
||||
public static final MaterialSetTag BEDS = new MaterialSetTag(keyFor("beds"))
|
||||
.endsWith("_BED")
|
||||
.ensureSize("BEDS", 16).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag BEDS = replacedBy(Tag.BEDS);
|
||||
|
||||
/**
|
||||
* Covers all bucket items.
|
||||
@@ -61,9 +75,11 @@ public class MaterialTags {
|
||||
|
||||
/**
|
||||
* Covers coal and charcoal.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#ITEMS_COALS}
|
||||
*/
|
||||
public static final MaterialSetTag COALS = new MaterialSetTag(keyFor("coals"))
|
||||
.add(Material.COAL, Material.CHARCOAL).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag COALS = replacedBy(Tag.ITEMS_COALS);
|
||||
|
||||
/**
|
||||
* Covers both cobblestone wall variants.
|
||||
@@ -87,10 +103,11 @@ public class MaterialTags {
|
||||
|
||||
/**
|
||||
* Covers all colors of concrete powder.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#CONCRETE_POWDER}
|
||||
*/
|
||||
public static final MaterialSetTag CONCRETE_POWDER = new MaterialSetTag(keyFor("concrete_powder"))
|
||||
.endsWith("_CONCRETE_POWDER")
|
||||
.ensureSize("CONCRETE_POWDER", 16).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag CONCRETE_POWDER = replacedBy(Tag.CONCRETE_POWDER);
|
||||
|
||||
/**
|
||||
* Covers the two types of cooked fish.
|
||||
@@ -100,10 +117,11 @@ public class MaterialTags {
|
||||
|
||||
/**
|
||||
* Covers all variants of doors.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#DOORS}
|
||||
*/
|
||||
public static final MaterialSetTag DOORS = new MaterialSetTag(keyFor("doors"))
|
||||
.endsWith("_DOOR")
|
||||
.ensureSize("DOORS", 21).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag DOORS = replacedBy(Tag.DOORS);
|
||||
|
||||
/**
|
||||
* Covers all dyes.
|
||||
@@ -114,17 +132,19 @@ public class MaterialTags {
|
||||
|
||||
/**
|
||||
* Covers all variants of gates.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#FENCE_GATES}
|
||||
*/
|
||||
public static final MaterialSetTag FENCE_GATES = new MaterialSetTag(keyFor("fence_gates"))
|
||||
.endsWith("_GATE")
|
||||
.ensureSize("FENCE_GATES", 12).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag FENCE_GATES = replacedBy(Tag.FENCE_GATES);
|
||||
|
||||
/**
|
||||
* Covers all variants of fences.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#FENCES}
|
||||
*/
|
||||
public static final MaterialSetTag FENCES = new MaterialSetTag(keyFor("fences"))
|
||||
.endsWith("_FENCE")
|
||||
.ensureSize("FENCES", 13).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag FENCES = replacedBy(Tag.FENCES);
|
||||
|
||||
/**
|
||||
* Covers all variants of fish buckets.
|
||||
@@ -133,7 +153,7 @@ public class MaterialTags {
|
||||
.add(Material.COD_BUCKET, Material.PUFFERFISH_BUCKET, Material.SALMON_BUCKET, Material.TROPICAL_FISH_BUCKET).lock();
|
||||
|
||||
/**
|
||||
* Covers the non-colored glass and 16 stained glass (not panes).
|
||||
* Covers the non-colored glass and 16 stained glasses (not panes).
|
||||
*/
|
||||
public static final MaterialSetTag GLASS = new MaterialSetTag(keyFor("glass"))
|
||||
.endsWith("_GLASS")
|
||||
@@ -182,7 +202,7 @@ public class MaterialTags {
|
||||
*/
|
||||
public static final MaterialSetTag HORSE_ARMORS = new MaterialSetTag(keyFor("horse_armors"))
|
||||
.endsWith("_HORSE_ARMOR")
|
||||
.ensureSize("HORSE_ARMORS", 4).lock();
|
||||
.ensureSize("HORSE_ARMORS", 5).lock();
|
||||
|
||||
/**
|
||||
* Covers the variants of infested blocks.
|
||||
@@ -214,10 +234,11 @@ public class MaterialTags {
|
||||
/**
|
||||
* Covers all ores.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static final MaterialSetTag ORES = new MaterialSetTag(keyFor("ores"))
|
||||
.add(Material.ANCIENT_DEBRIS)
|
||||
.endsWith("_ORE")
|
||||
.ensureSize("ORES", 19).lock();
|
||||
.add(Tag.COAL_ORES, Tag.COPPER_ORES, Tag.IRON_ORES, Tag.GOLD_ORES,
|
||||
Tag.LAPIS_ORES, Tag.REDSTONE_ORES, Tag.DIAMOND_ORES, Tag.EMERALD_ORES)
|
||||
.add(Material.ANCIENT_DEBRIS, Material.NETHER_QUARTZ_ORE).lock();
|
||||
|
||||
/**
|
||||
* Covers all piston typed items and blocks including the piston head and moving piston.
|
||||
@@ -235,10 +256,11 @@ public class MaterialTags {
|
||||
|
||||
/**
|
||||
* Covers all wooden pressure plates and the weighted pressure plates and the stone pressure plate.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#PRESSURE_PLATES}
|
||||
*/
|
||||
public static final MaterialSetTag PRESSURE_PLATES = new MaterialSetTag(keyFor("pressure_plates"))
|
||||
.endsWith("_PRESSURE_PLATE")
|
||||
.ensureSize("PRESSURE_PLATES", 16).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag PRESSURE_PLATES = replacedBy(Tag.PRESSURE_PLATES);
|
||||
|
||||
/**
|
||||
* Covers the variants of prismarine blocks.
|
||||
@@ -298,10 +320,11 @@ public class MaterialTags {
|
||||
|
||||
/**
|
||||
* Covers the non-colored and colored shulker boxes.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#SHULKER_BOXES}
|
||||
*/
|
||||
public static final MaterialSetTag SHULKER_BOXES = new MaterialSetTag(keyFor("shulker_boxes"))
|
||||
.endsWith("SHULKER_BOX")
|
||||
.ensureSize("SHULKER_BOXES", 17).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag SHULKER_BOXES = replacedBy(Tag.SHULKER_BOXES);
|
||||
|
||||
/**
|
||||
* Covers zombie, creeper, skeleton, dragon, and player heads.
|
||||
@@ -317,7 +340,7 @@ public class MaterialTags {
|
||||
*/
|
||||
public static final MaterialSetTag SPAWN_EGGS = new MaterialSetTag(keyFor("spawn_eggs"))
|
||||
.endsWith("_SPAWN_EGG")
|
||||
.ensureSize("SPAWN_EGGS", 82).lock();
|
||||
.ensureSize("SPAWN_EGGS", 83).lock();
|
||||
|
||||
/**
|
||||
* Covers all colors of stained glass.
|
||||
@@ -335,43 +358,43 @@ public class MaterialTags {
|
||||
|
||||
/**
|
||||
* Covers all variants of trapdoors.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#TRAPDOORS}
|
||||
*/
|
||||
public static final MaterialSetTag TRAPDOORS = new MaterialSetTag(keyFor("trapdoors"))
|
||||
.endsWith("_TRAPDOOR")
|
||||
.ensureSize("TRAPDOORS", 21).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag TRAPDOORS = replacedBy(Tag.TRAPDOORS);
|
||||
|
||||
/**
|
||||
* Covers all wood variants of doors.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#WOODEN_DOORS}
|
||||
*/
|
||||
public static final MaterialSetTag WOODEN_DOORS = new MaterialSetTag(keyFor("wooden_doors"))
|
||||
.endsWith("_DOOR")
|
||||
.not(Material.IRON_DOOR)
|
||||
.notContains("COPPER")
|
||||
.ensureSize("WOODEN_DOORS", 12).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag WOODEN_DOORS = replacedBy(Tag.WOODEN_DOORS);
|
||||
|
||||
/**
|
||||
* Covers all wood variants of fences.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#WOODEN_FENCES}
|
||||
*/
|
||||
public static final MaterialSetTag WOODEN_FENCES = new MaterialSetTag(keyFor("wooden_fences"))
|
||||
.endsWith("_FENCE")
|
||||
.not(Material.NETHER_BRICK_FENCE)
|
||||
.ensureSize("WOODEN_FENCES", 12).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag WOODEN_FENCES = replacedBy(Tag.WOODEN_FENCES);
|
||||
|
||||
/**
|
||||
* Covers all wood variants of trapdoors.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#WOODEN_TRAPDOORS}
|
||||
*/
|
||||
public static final MaterialSetTag WOODEN_TRAPDOORS = new MaterialSetTag(keyFor("wooden_trapdoors"))
|
||||
.endsWith("_TRAPDOOR")
|
||||
.not(Material.IRON_TRAPDOOR)
|
||||
.notContains("COPPER")
|
||||
.ensureSize("WOODEN_TRAPDOORS", 12).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag WOODEN_TRAPDOORS = replacedBy(Tag.WOODEN_TRAPDOORS);
|
||||
|
||||
/**
|
||||
* Covers the wood variants of gates.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#FENCE_GATES}
|
||||
*/
|
||||
public static final MaterialSetTag WOODEN_GATES = new MaterialSetTag(keyFor("wooden_gates"))
|
||||
.endsWith("_GATE")
|
||||
.ensureSize("WOODEN_GATES", 12).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag WOODEN_GATES = replacedBy(Tag.FENCE_GATES, "wooden_gates");
|
||||
|
||||
/**
|
||||
* Covers the variants of purpur.
|
||||
@@ -382,10 +405,11 @@ public class MaterialTags {
|
||||
|
||||
/**
|
||||
* Covers the variants of signs.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#ALL_SIGNS}
|
||||
*/
|
||||
public static final MaterialSetTag SIGNS = new MaterialSetTag(keyFor("signs"))
|
||||
.endsWith("_SIGN")
|
||||
.ensureSize("SIGNS", 48).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag SIGNS = replacedBy(Tag.ALL_SIGNS, "signs");
|
||||
|
||||
/**
|
||||
* Covers the variants of a regular torch.
|
||||
@@ -408,112 +432,137 @@ public class MaterialTags {
|
||||
.add(Material.SOUL_TORCH, Material.SOUL_WALL_TORCH)
|
||||
.ensureSize("SOUL_TORCH", 2).lock();
|
||||
|
||||
/**
|
||||
* Covers the variants of a copper torch.
|
||||
*/
|
||||
public static final MaterialSetTag COPPER_TORCH = new MaterialSetTag(keyFor("copper_torch"))
|
||||
.add(Material.COPPER_TORCH, Material.COPPER_WALL_TORCH)
|
||||
.ensureSize("COPPER_TORCH", 2).lock();
|
||||
|
||||
/**
|
||||
* Covers the variants of torches.
|
||||
*/
|
||||
public static final MaterialSetTag TORCHES = new MaterialSetTag(keyFor("torches"))
|
||||
.add(TORCH, REDSTONE_TORCH, SOUL_TORCH)
|
||||
.ensureSize("TORCHES", 6).lock();
|
||||
.add(TORCH, REDSTONE_TORCH, SOUL_TORCH, COPPER_TORCH)
|
||||
.ensureSize("TORCHES", 8).lock();
|
||||
|
||||
/**
|
||||
* Covers the variants of lanterns.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#LANTERNS}
|
||||
*/
|
||||
public static final MaterialSetTag LANTERNS = new MaterialSetTag(keyFor("lanterns"))
|
||||
.add(Material.LANTERN, Material.SOUL_LANTERN)
|
||||
.ensureSize("LANTERNS", 2).lock();
|
||||
@Deprecated(since = "1.21.9")
|
||||
public static final MaterialSetTag LANTERNS = replacedBy(Tag.LANTERNS);
|
||||
|
||||
/**
|
||||
* Covers the variants of rails.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#RAILS}
|
||||
*/
|
||||
public static final MaterialSetTag RAILS = new MaterialSetTag(keyFor("rails"))
|
||||
.endsWith("RAIL")
|
||||
.ensureSize("RAILS", 4).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag RAILS = replacedBy(Tag.RAILS);
|
||||
|
||||
/**
|
||||
* Covers the variants of swords.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#ITEMS_SWORDS}
|
||||
*/
|
||||
public static final MaterialSetTag SWORDS = new MaterialSetTag(keyFor("swords"))
|
||||
.endsWith("_SWORD")
|
||||
.ensureSize("SWORDS", 6).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag SWORDS = replacedBy(Tag.ITEMS_SWORDS);
|
||||
|
||||
/**
|
||||
* Covers the variants of shovels.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#ITEMS_SHOVELS}
|
||||
*/
|
||||
public static final MaterialSetTag SHOVELS = new MaterialSetTag(keyFor("shovels"))
|
||||
.endsWith("_SHOVEL")
|
||||
.ensureSize("SHOVELS", 6).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag SHOVELS = replacedBy(Tag.ITEMS_SHOVELS);
|
||||
|
||||
/**
|
||||
* Covers the variants of pickaxes.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#ITEMS_PICKAXES}
|
||||
*/
|
||||
public static final MaterialSetTag PICKAXES = new MaterialSetTag(keyFor("pickaxes"))
|
||||
.endsWith("_PICKAXE")
|
||||
.ensureSize("PICKAXES", 6).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag PICKAXES = replacedBy(Tag.ITEMS_PICKAXES);
|
||||
|
||||
/**
|
||||
* Covers the variants of axes.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#ITEMS_AXES}
|
||||
*/
|
||||
public static final MaterialSetTag AXES = new MaterialSetTag(keyFor("axes"))
|
||||
.endsWith("_AXE")
|
||||
.ensureSize("AXES", 6).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag AXES = replacedBy(Tag.ITEMS_AXES);
|
||||
|
||||
/**
|
||||
* Covers the variants of hoes.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#ITEMS_HOES}
|
||||
*/
|
||||
public static final MaterialSetTag HOES = new MaterialSetTag(keyFor("hoes"))
|
||||
.endsWith("_HOE")
|
||||
.ensureSize("HOES", 6).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag HOES = replacedBy(Tag.ITEMS_HOES);
|
||||
|
||||
/**
|
||||
* Covers the variants of helmets.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#ITEMS_HEAD_ARMOR}
|
||||
*/
|
||||
public static final MaterialSetTag HELMETS = new MaterialSetTag(keyFor("helmets"))
|
||||
.endsWith("_HELMET")
|
||||
.ensureSize("HELMETS", 7).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag HELMETS = replacedBy(Tag.ITEMS_HEAD_ARMOR, "helmets");
|
||||
|
||||
/**
|
||||
* Covers the variants of items that can be equipped in the helmet slot.
|
||||
*
|
||||
* @deprecated any item can be equippable with the right data component set on it
|
||||
*/
|
||||
@Deprecated(since = "1.21.8")
|
||||
@SuppressWarnings("unchecked")
|
||||
public static final MaterialSetTag HEAD_EQUIPPABLE = new MaterialSetTag(keyFor("head_equippable"))
|
||||
.endsWith("_HELMET")
|
||||
.add(SKULLS)
|
||||
.add(Material.CARVED_PUMPKIN)
|
||||
.ensureSize("HEAD_EQUIPPABLE", 22).lock();
|
||||
.add(Tag.ITEMS_HEAD_ARMOR, Tag.ITEMS_SKULLS)
|
||||
.add(Material.CARVED_PUMPKIN).lock();
|
||||
|
||||
/**
|
||||
* Covers the variants of chestplate.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#ITEMS_CHEST_ARMOR}
|
||||
*/
|
||||
public static final MaterialSetTag CHESTPLATES = new MaterialSetTag(keyFor("chestplates"))
|
||||
.endsWith("_CHESTPLATE")
|
||||
.ensureSize("CHESTPLATES", 6).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag CHESTPLATES = replacedBy(Tag.ITEMS_CHEST_ARMOR, "chestplates");
|
||||
|
||||
/**
|
||||
* Covers the variants of items that can be equipped in the chest slot.
|
||||
*
|
||||
* @deprecated any item can be equippable with the right data component set on it
|
||||
*/
|
||||
@Deprecated(since = "1.21.8")
|
||||
@SuppressWarnings("unchecked")
|
||||
public static final MaterialSetTag CHEST_EQUIPPABLE = new MaterialSetTag(keyFor("chest_equippable"))
|
||||
.endsWith("_CHESTPLATE")
|
||||
.add(Material.ELYTRA)
|
||||
.ensureSize("CHEST_EQUIPPABLE", 7).lock();
|
||||
.add(Tag.ITEMS_CHEST_ARMOR)
|
||||
.add(Material.ELYTRA).lock();
|
||||
|
||||
/**
|
||||
* Covers the variants of leggings.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#ITEMS_LEG_ARMOR}
|
||||
*/
|
||||
public static final MaterialSetTag LEGGINGS = new MaterialSetTag(keyFor("leggings"))
|
||||
.endsWith("_LEGGINGS")
|
||||
.ensureSize("LEGGINGS", 6).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag LEGGINGS = replacedBy(Tag.ITEMS_LEG_ARMOR, "leggings");
|
||||
|
||||
/**
|
||||
* Covers the variants of boots.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#ITEMS_FOOT_ARMOR}
|
||||
*/
|
||||
public static final MaterialSetTag BOOTS = new MaterialSetTag(keyFor("boots"))
|
||||
.endsWith("_BOOTS")
|
||||
.ensureSize("BOOTS", 6).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag BOOTS = replacedBy(Tag.ITEMS_FOOT_ARMOR, "boots");
|
||||
|
||||
/**
|
||||
* Covers all variants of armor.
|
||||
*/
|
||||
public static final MaterialSetTag ARMOR = new MaterialSetTag(keyFor("armor")).add(HELMETS, CHESTPLATES, LEGGINGS, BOOTS)
|
||||
.ensureSize("ARMOR", 25).lock();
|
||||
@SuppressWarnings("unchecked")
|
||||
public static final MaterialSetTag ARMOR = new MaterialSetTag(keyFor("armor"))
|
||||
.add(Tag.ITEMS_HEAD_ARMOR, Tag.ITEMS_CHEST_ARMOR, Tag.ITEMS_LEG_ARMOR, Tag.ITEMS_FOOT_ARMOR)
|
||||
.lock();
|
||||
|
||||
/**
|
||||
* Covers the variants of bows.
|
||||
@@ -521,21 +570,27 @@ public class MaterialTags {
|
||||
public static final MaterialSetTag BOWS = new MaterialSetTag(keyFor("bows"))
|
||||
.add(Material.BOW)
|
||||
.add(Material.CROSSBOW)
|
||||
.ensureSize("BOWS", 2).lock();
|
||||
.lock();
|
||||
|
||||
/**
|
||||
* Covers the variants of player-throwable projectiles (not requiring a bow or any other "assistance").
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static final MaterialSetTag THROWABLE_PROJECTILES = new MaterialSetTag(keyFor("throwable_projectiles"))
|
||||
.add(Material.EGG, Material.SNOWBALL, Material.SPLASH_POTION, Material.TRIDENT, Material.ENDER_PEARL, Material.EXPERIENCE_BOTTLE, Material.FIREWORK_ROCKET).lock();
|
||||
.add(Tag.ITEMS_EGGS)
|
||||
.add(Material.SNOWBALL, Material.SPLASH_POTION, Material.LINGERING_POTION,
|
||||
Material.TRIDENT, Material.ENDER_PEARL, Material.EXPERIENCE_BOTTLE, Material.FIREWORK_ROCKET,
|
||||
Material.WIND_CHARGE)
|
||||
.lock();
|
||||
|
||||
/**
|
||||
* Covers materials that can be colored, such as wool, shulker boxes, stained glass etc.
|
||||
* Covers materials that can be colored, such as wool, shulker boxes, stained glasses etc.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static final MaterialSetTag COLORABLE = new MaterialSetTag(keyFor("colorable"))
|
||||
.add(Tag.WOOL, Tag.CARPETS).add(SHULKER_BOXES, STAINED_GLASS, STAINED_GLASS_PANES, CONCRETES, BEDS).lock();
|
||||
//.ensureSize("COLORABLE", 81).lock(); unit test don't have the vanilla item tags, so counts don't line up for real
|
||||
.add(Tag.WOOL, Tag.WOOL_CARPETS, Tag.SHULKER_BOXES, Tag.BEDS)
|
||||
.add(STAINED_GLASS, STAINED_GLASS_PANES, CONCRETES)
|
||||
.lock();
|
||||
|
||||
/**
|
||||
* Covers the variants of coral.
|
||||
@@ -561,15 +616,11 @@ public class MaterialTags {
|
||||
|
||||
/**
|
||||
* Covers all items that can be enchanted from the enchantment table or anvil.
|
||||
*
|
||||
* @deprecated in favour of {@link Tag#ITEMS_ENCHANTABLE_VANISHING} and other similar enchantable tags
|
||||
*/
|
||||
public static final MaterialSetTag ENCHANTABLE = new MaterialSetTag(keyFor("enchantable"))
|
||||
.add(PICKAXES, SWORDS, SHOVELS, AXES, HOES, HELMETS, CHEST_EQUIPPABLE, LEGGINGS, BOOTS, BOWS)
|
||||
.add(Material.TRIDENT, Material.SHIELD, Material.FISHING_ROD, Material.SHEARS,
|
||||
Material.FLINT_AND_STEEL, Material.CARROT_ON_A_STICK, Material.WARPED_FUNGUS_ON_A_STICK,
|
||||
Material.BRUSH, Material.CARVED_PUMPKIN, Material.COMPASS, Material.SKELETON_SKULL,
|
||||
Material.WITHER_SKELETON_SKULL, Material.PLAYER_HEAD, Material.ZOMBIE_HEAD,
|
||||
Material.CREEPER_HEAD, Material.DRAGON_HEAD, Material.PIGLIN_HEAD, Material.MACE)
|
||||
.ensureSize("ENCHANTABLE", 76).lock();
|
||||
@Deprecated(since = "1.21.8")
|
||||
public static final MaterialSetTag ENCHANTABLE = replacedBy(Tag.ITEMS_ENCHANTABLE_VANISHING, "enchantable"); // this tag already cover the others
|
||||
|
||||
/**
|
||||
* Covers the variants of raw ores.
|
||||
@@ -601,19 +652,19 @@ public class MaterialTags {
|
||||
* Covers all oxidized copper blocks.
|
||||
*/
|
||||
public static final MaterialSetTag OXIDIZED_COPPER_BLOCKS = new MaterialSetTag(keyFor("oxidized_copper_blocks"))
|
||||
.startsWith("OXIDIZED_").startsWith("WAXED_OXIDIZED_").ensureSize("OXIDIZED_COPPER_BLOCKS", 18).lock();
|
||||
.startsWith("OXIDIZED_").startsWith("WAXED_OXIDIZED_").ensureSize("OXIDIZED_COPPER_BLOCKS", 30).lock();
|
||||
|
||||
/**
|
||||
* Covers all weathered copper blocks.
|
||||
*/
|
||||
public static final MaterialSetTag WEATHERED_COPPER_BLOCKS = new MaterialSetTag(keyFor("weathered_copper_blocks"))
|
||||
.startsWith("WEATHERED_").startsWith("WAXED_WEATHERED_").ensureSize("WEATHERED_COPPER_BLOCKS", 18).lock();
|
||||
.startsWith("WEATHERED_").startsWith("WAXED_WEATHERED_").ensureSize("WEATHERED_COPPER_BLOCKS", 30).lock();
|
||||
|
||||
/**
|
||||
* Covers all exposed copper blocks.
|
||||
*/
|
||||
public static final MaterialSetTag EXPOSED_COPPER_BLOCKS = new MaterialSetTag(keyFor("exposed_copper_blocks"))
|
||||
.startsWith("EXPOSED_").startsWith("WAXED_EXPOSED_").ensureSize("EXPOSED_COPPER_BLOCKS", 18).lock();
|
||||
.startsWith("EXPOSED_").startsWith("WAXED_EXPOSED_").ensureSize("EXPOSED_COPPER_BLOCKS", 30).lock();
|
||||
|
||||
/**
|
||||
* Covers all un-weathered copper blocks.
|
||||
@@ -622,8 +673,11 @@ public class MaterialTags {
|
||||
.startsWith("CUT_COPPER").startsWith("WAXED_CUT_COPPER")
|
||||
.startsWith("WAXED_COPPER_").startsWith("COPPER_")
|
||||
.add(Material.CHISELED_COPPER, Material.WAXED_CHISELED_COPPER)
|
||||
.not(Material.COPPER_INGOT, Material.COPPER_ORE)
|
||||
.ensureSize("UNAFFECTED_COPPER_BLOCKS", 18).lock();
|
||||
.not(Material.COPPER_INGOT, Material.COPPER_ORE, Material.COPPER_NUGGET)
|
||||
.not(Material.COPPER_HORSE_ARMOR, Material.COPPER_GOLEM_SPAWN_EGG)
|
||||
.not(Material.COPPER_HELMET, Material.COPPER_CHESTPLATE, Material.COPPER_LEGGINGS, Material.COPPER_BOOTS)
|
||||
.not(Material.COPPER_AXE, Material.COPPER_HOE, Material.COPPER_PICKAXE, Material.COPPER_SHOVEL, Material.COPPER_SWORD)
|
||||
.ensureSize("UNAFFECTED_COPPER_BLOCKS", 30).lock();
|
||||
|
||||
/**
|
||||
* Covers all waxed copper blocks.
|
||||
@@ -631,7 +685,7 @@ public class MaterialTags {
|
||||
* Combine with other copper-related tags to filter is-waxed or not.
|
||||
*/
|
||||
public static final MaterialSetTag WAXED_COPPER_BLOCKS = new MaterialSetTag(keyFor("waxed_copper_blocks"))
|
||||
.add(m -> m.name().startsWith("WAXED_") && m.name().contains("COPPER")).ensureSize("WAXED_COPPER_BLOCKS", 36).lock();
|
||||
.add(m -> m.name().startsWith("WAXED_") && m.name().contains("COPPER")).ensureSize("WAXED_COPPER_BLOCKS", 56).lock();
|
||||
|
||||
/**
|
||||
* Covers all un-waxed copper blocks.
|
||||
@@ -642,13 +696,14 @@ public class MaterialTags {
|
||||
.startsWith("EXPOSED_").startsWith("WEATHERED_").startsWith("OXIDIZED_")
|
||||
.startsWith("CUT_COPPER")
|
||||
.add(Material.COPPER_BLOCK, Material.CHISELED_COPPER, Material.COPPER_DOOR, Material.COPPER_TRAPDOOR, Material.COPPER_GRATE, Material.COPPER_BULB)
|
||||
.ensureSize("UNWAXED_COPPER_BLOCKS", 36).lock();
|
||||
.add(Material.COPPER_BARS, Material.COPPER_TORCH, Material.COPPER_CHEST, Material.COPPER_CHAIN, Material.COPPER_WALL_TORCH, Material.COPPER_LANTERN, Material.COPPER_GOLEM_STATUE)
|
||||
.ensureSize("UNWAXED_COPPER_BLOCKS", 61).lock();
|
||||
|
||||
/**
|
||||
* Covers all copper block variants.
|
||||
*/
|
||||
public static final MaterialSetTag COPPER_BLOCKS = new MaterialSetTag(keyFor("copper_blocks"))
|
||||
.add(WAXED_COPPER_BLOCKS).add(UNWAXED_COPPER_BLOCKS).ensureSize("COPPER_BLOCKS", 72).lock();
|
||||
.add(WAXED_COPPER_BLOCKS).add(UNWAXED_COPPER_BLOCKS).ensureSize("COPPER_BLOCKS", 117).lock();
|
||||
|
||||
/**
|
||||
* Covers all weathering/waxed states of the plain copper block.
|
||||
@@ -693,6 +748,13 @@ public class MaterialTags {
|
||||
.add(Material.STONE_AXE, Material.STONE_HOE, Material.STONE_PICKAXE, Material.STONE_SHOVEL, Material.STONE_SWORD)
|
||||
.ensureSize("STONE_TOOLS", 5).lock();
|
||||
|
||||
/**
|
||||
* Covers all copper Tools.
|
||||
*/
|
||||
public static final MaterialSetTag COPPER_TOOLS = new MaterialSetTag(keyFor("copper_tools"))
|
||||
.add(Material.COPPER_AXE, Material.COPPER_HOE, Material.COPPER_PICKAXE, Material.COPPER_SHOVEL, Material.COPPER_SWORD)
|
||||
.ensureSize("COPPER_TOOLS", 5).lock();
|
||||
|
||||
/**
|
||||
* Covers all Iron Tools.
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,25 @@
|
||||
package com.destroystokyo.paper;
|
||||
|
||||
import io.papermc.paper.InternalAPIBridge;
|
||||
import org.jetbrains.annotations.Contract;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
* Represents the different parts of a player's skin that can be toggled on or off.
|
||||
*/
|
||||
@NullMarked
|
||||
public interface SkinParts {
|
||||
|
||||
/**
|
||||
* Creates a new instance of {@link SkinParts} with all parts enabled.
|
||||
*
|
||||
* @return a new {@link SkinParts} instance
|
||||
*/
|
||||
@Contract(value = "-> new", pure = true)
|
||||
static SkinParts.Mutable allParts() {
|
||||
return InternalAPIBridge.get().allSkinParts();
|
||||
}
|
||||
|
||||
boolean hasCapeEnabled();
|
||||
|
||||
boolean hasJacketEnabled();
|
||||
@@ -17,4 +35,25 @@ public interface SkinParts {
|
||||
boolean hasHatsEnabled();
|
||||
|
||||
int getRaw();
|
||||
|
||||
Mutable mutableCopy();
|
||||
|
||||
interface Mutable extends SkinParts {
|
||||
|
||||
void setCapeEnabled(boolean enabled);
|
||||
|
||||
void setJacketEnabled(boolean enabled);
|
||||
|
||||
void setLeftSleeveEnabled(boolean enabled);
|
||||
|
||||
void setRightSleeveEnabled(boolean enabled);
|
||||
|
||||
void setLeftPantsEnabled(boolean enabled);
|
||||
|
||||
void setRightPantsEnabled(boolean enabled);
|
||||
|
||||
void setHatsEnabled(boolean enabled);
|
||||
|
||||
SkinParts immutableCopy();
|
||||
}
|
||||
}
|
||||
@@ -162,7 +162,7 @@ public final class Title {
|
||||
/**
|
||||
* Creates a new title.
|
||||
*
|
||||
* <p>It is recommended to the {@link BaseComponent} constrctors.</p>
|
||||
* <p>It is recommended to use the {@link BaseComponent} constructors.</p>
|
||||
*
|
||||
* @param title the main text of the title
|
||||
* @param subtitle the secondary text of the title
|
||||
@@ -234,7 +234,7 @@ public final class Title {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends the title directly to an player
|
||||
* Sends the title directly to a player
|
||||
*
|
||||
* @param player the receiver of the title
|
||||
*/
|
||||
@@ -315,7 +315,7 @@ public final class Title {
|
||||
/**
|
||||
* Sets the title to the given text.
|
||||
*
|
||||
* <p>It is recommended to the {@link BaseComponent} methods.</p>
|
||||
* <p>It is recommended to use the {@link BaseComponent} methods.</p>
|
||||
*
|
||||
* @param title the title text
|
||||
* @return this builder instance
|
||||
@@ -352,7 +352,7 @@ public final class Title {
|
||||
/**
|
||||
* Sets the subtitle to the given text.
|
||||
*
|
||||
* <p>It is recommended to the {@link BaseComponent} methods.</p>
|
||||
* <p>It is recommended to use the {@link BaseComponent} methods.</p>
|
||||
*
|
||||
* @param subtitle the title text
|
||||
* @return this builder instance
|
||||
|
||||
@@ -52,7 +52,7 @@ public interface Pathfinder {
|
||||
* The behavior of this PathResult is subject to the games pathfinding rules, and may
|
||||
* result in the pathfinding automatically updating to follow the target Entity.
|
||||
* <p>
|
||||
* However, this behavior is not guaranteed, and is subject to the games behavior.
|
||||
* However, this behavior is not guaranteed, and is subject to the game's behavior.
|
||||
*
|
||||
* @param target the Entity to navigate to
|
||||
* @return The closest Location the Entity can get to for this navigation, or null if no path could be calculated
|
||||
@@ -90,7 +90,7 @@ public interface Pathfinder {
|
||||
* The behavior of this PathResult is subject to the games pathfinding rules, and may
|
||||
* result in the pathfinding automatically updating to follow the target Entity.
|
||||
* <p>
|
||||
* However, this behavior is not guaranteed, and is subject to the games behavior.
|
||||
* However, this behavior is not guaranteed, and is subject to the game's behavior.
|
||||
*
|
||||
* @param target the Entity to navigate to
|
||||
* @return If the pathfinding was successfully started
|
||||
@@ -106,7 +106,7 @@ public interface Pathfinder {
|
||||
* The behavior of this PathResult is subject to the games pathfinding rules, and may
|
||||
* result in the pathfinding automatically updating to follow the target Entity.
|
||||
* <p>
|
||||
* However, this behavior is not guaranteed, and is subject to the games behavior.
|
||||
* However, this behavior is not guaranteed, and is subject to the game's behavior.
|
||||
*
|
||||
* @param target the Entity to navigate to
|
||||
* @param speed Speed multiplier to navigate at, where 1 is 'normal'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.destroystokyo.paper.entity.ai;
|
||||
|
||||
|
||||
import java.util.Collection;
|
||||
import org.bukkit.entity.Mob;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
+1
@@ -34,6 +34,7 @@ import org.jspecify.annotations.NullMarked;
|
||||
public class AsyncPlayerSendCommandsEvent<S extends CommandSourceStack> extends PlayerEvent {
|
||||
|
||||
private static final HandlerList HANDLER_LIST = new HandlerList();
|
||||
|
||||
private final RootCommandNode<S> node;
|
||||
private final boolean hasFiredAsync;
|
||||
|
||||
|
||||
+3
-4
@@ -18,11 +18,12 @@ import org.jspecify.annotations.NullMarked;
|
||||
public class AsyncPlayerSendSuggestionsEvent extends PlayerEvent implements Cancellable {
|
||||
|
||||
private static final HandlerList HANDLER_LIST = new HandlerList();
|
||||
private boolean cancelled = false;
|
||||
|
||||
private Suggestions suggestions;
|
||||
private final String buffer;
|
||||
|
||||
private boolean cancelled;
|
||||
|
||||
@ApiStatus.Internal
|
||||
public AsyncPlayerSendSuggestionsEvent(final Player player, final Suggestions suggestions, final String buffer) {
|
||||
super(player, !Bukkit.isPrimaryThread());
|
||||
@@ -57,9 +58,6 @@ public class AsyncPlayerSendSuggestionsEvent extends PlayerEvent implements Canc
|
||||
this.suggestions = suggestions;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
return this.cancelled;
|
||||
@@ -67,6 +65,7 @@ public class AsyncPlayerSendSuggestionsEvent extends PlayerEvent implements Canc
|
||||
|
||||
/**
|
||||
* Cancels sending suggestions to the client.
|
||||
* <p>
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
|
||||
+7
-11
@@ -9,7 +9,6 @@ import org.bukkit.command.Command;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.bukkit.event.server.ServerEvent;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
@@ -19,15 +18,14 @@ import org.jetbrains.annotations.NotNull;
|
||||
* This is done at Plugin Enable time after commands have been registered, but may also
|
||||
* run at a later point in the server lifetime due to plugins, a server reload, etc.</p>
|
||||
*
|
||||
* <p>This is a draft/experimental API and is subject to change.</p>
|
||||
* @deprecated For removal, use the new brigadier api.
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@Deprecated(since = "1.20.6")
|
||||
@Warning(reason = "This event has been superseded by the Commands API and will be removed in a future release. Listen to LifecycleEvents.COMMANDS instead.", value = true)
|
||||
public class CommandRegisteredEvent<S extends com.destroystokyo.paper.brigadier.BukkitBrigadierCommandSource> extends ServerEvent implements Cancellable {
|
||||
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private static final HandlerList HANDLER_LIST = new HandlerList();
|
||||
|
||||
private final String commandLabel;
|
||||
private final Command command;
|
||||
private final com.destroystokyo.paper.brigadier.BukkitBrigadierCommand<S> brigadierCommand;
|
||||
@@ -35,7 +33,8 @@ public class CommandRegisteredEvent<S extends com.destroystokyo.paper.brigadier.
|
||||
private final ArgumentCommandNode<S, String> defaultArgs;
|
||||
private LiteralCommandNode<S> literal;
|
||||
private boolean rawCommand = false;
|
||||
private boolean cancelled = false;
|
||||
|
||||
private boolean cancelled;
|
||||
|
||||
public CommandRegisteredEvent(String commandLabel, com.destroystokyo.paper.brigadier.BukkitBrigadierCommand<S> brigadierCommand, Command command, RootCommandNode<S> root, LiteralCommandNode<S> literal, ArgumentCommandNode<S, String> defaultArgs) {
|
||||
this.commandLabel = commandLabel;
|
||||
@@ -140,9 +139,6 @@ public class CommandRegisteredEvent<S extends com.destroystokyo.paper.brigadier.
|
||||
this.rawCommand = rawCommand;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
return this.cancelled;
|
||||
@@ -151,7 +147,7 @@ public class CommandRegisteredEvent<S extends com.destroystokyo.paper.brigadier.
|
||||
/**
|
||||
* Cancels registering this command to Brigadier, but will remain in Bukkit Command Map. Can be used to hide a
|
||||
* command from all players.
|
||||
*
|
||||
* <p>
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
@@ -161,11 +157,11 @@ public class CommandRegisteredEvent<S extends com.destroystokyo.paper.brigadier.
|
||||
|
||||
@NotNull
|
||||
public HandlerList getHandlers() {
|
||||
return handlers;
|
||||
return HANDLER_LIST;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static HandlerList getHandlerList() {
|
||||
return handlers;
|
||||
return HANDLER_LIST;
|
||||
}
|
||||
}
|
||||
+4
-4
@@ -94,10 +94,10 @@ public class PlayerArmorChangeEvent extends PlayerEvent {
|
||||
*/
|
||||
@Deprecated(since = "1.21.4")
|
||||
public enum SlotType {
|
||||
HEAD(NETHERITE_HELMET, DIAMOND_HELMET, GOLDEN_HELMET, IRON_HELMET, CHAINMAIL_HELMET, LEATHER_HELMET, CARVED_PUMPKIN, PLAYER_HEAD, SKELETON_SKULL, ZOMBIE_HEAD, CREEPER_HEAD, WITHER_SKELETON_SKULL, TURTLE_HELMET, DRAGON_HEAD, PIGLIN_HEAD),
|
||||
CHEST(NETHERITE_CHESTPLATE, DIAMOND_CHESTPLATE, GOLDEN_CHESTPLATE, IRON_CHESTPLATE, CHAINMAIL_CHESTPLATE, LEATHER_CHESTPLATE, ELYTRA),
|
||||
LEGS(NETHERITE_LEGGINGS, DIAMOND_LEGGINGS, GOLDEN_LEGGINGS, IRON_LEGGINGS, CHAINMAIL_LEGGINGS, LEATHER_LEGGINGS),
|
||||
FEET(NETHERITE_BOOTS, DIAMOND_BOOTS, GOLDEN_BOOTS, IRON_BOOTS, CHAINMAIL_BOOTS, LEATHER_BOOTS);
|
||||
HEAD(COPPER_HELMET, NETHERITE_HELMET, DIAMOND_HELMET, GOLDEN_HELMET, IRON_HELMET, CHAINMAIL_HELMET, LEATHER_HELMET, CARVED_PUMPKIN, PLAYER_HEAD, SKELETON_SKULL, ZOMBIE_HEAD, CREEPER_HEAD, WITHER_SKELETON_SKULL, TURTLE_HELMET, DRAGON_HEAD, PIGLIN_HEAD),
|
||||
CHEST(COPPER_CHESTPLATE, NETHERITE_CHESTPLATE, DIAMOND_CHESTPLATE, GOLDEN_CHESTPLATE, IRON_CHESTPLATE, CHAINMAIL_CHESTPLATE, LEATHER_CHESTPLATE, ELYTRA),
|
||||
LEGS(COPPER_LEGGINGS, NETHERITE_LEGGINGS, DIAMOND_LEGGINGS, GOLDEN_LEGGINGS, IRON_LEGGINGS, CHAINMAIL_LEGGINGS, LEATHER_LEGGINGS),
|
||||
FEET(COPPER_BOOTS, NETHERITE_BOOTS, DIAMOND_BOOTS, GOLDEN_BOOTS, IRON_BOOTS, CHAINMAIL_BOOTS, LEATHER_BOOTS);
|
||||
|
||||
private final Set<Material> types;
|
||||
|
||||
|
||||
+2
-6
@@ -221,12 +221,10 @@ public class PlayerHandshakeEvent extends Event implements Cancellable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if this event is cancelled.
|
||||
* {@inheritDoc}
|
||||
* <p>
|
||||
* When this event is cancelled, custom handshake logic will not
|
||||
* be processed.
|
||||
*
|
||||
* @return {@code true} if this event is cancelled, {@code false} otherwise
|
||||
*/
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
@@ -234,12 +232,10 @@ public class PlayerHandshakeEvent extends Event implements Cancellable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets if this event is cancelled.
|
||||
* {@inheritDoc}
|
||||
* <p>
|
||||
* When this event is cancelled, custom handshake logic will not
|
||||
* be processed.
|
||||
*
|
||||
* @param cancel {@code true} if this event is cancelled, {@code false} otherwise
|
||||
*/
|
||||
@Override
|
||||
public void setCancelled(final boolean cancel) {
|
||||
|
||||
@@ -40,8 +40,6 @@ public class PlayerJumpEvent extends PlayerEvent implements Cancellable {
|
||||
* If this event is cancelled, the player will be moved or
|
||||
* teleported back to the Location as defined by {@link #getFrom()}. This will not
|
||||
* fire an event
|
||||
*
|
||||
* @return {@code true} if this event is cancelled
|
||||
*/
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
@@ -54,8 +52,6 @@ public class PlayerJumpEvent extends PlayerEvent implements Cancellable {
|
||||
* If this event is cancelled, the player will be moved or
|
||||
* teleported back to the Location as defined by {@link #getFrom()}. This will not
|
||||
* fire an event
|
||||
*
|
||||
* @param cancel {@code true} if you wish to cancel this event
|
||||
*/
|
||||
@Override
|
||||
public void setCancelled(final boolean cancel) {
|
||||
|
||||
+23
-1
@@ -6,6 +6,8 @@ import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Allows a plugin to be notified anytime AFTER a Profile has been looked up from the Mojang API
|
||||
@@ -28,8 +30,28 @@ public class LookupProfileEvent extends Event {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The profile that was recently looked up. This profile can be mutated
|
||||
* Gets the name of the profile that was looked up.
|
||||
*
|
||||
* @return the name of the profile
|
||||
*/
|
||||
public String getName() {
|
||||
return Objects.requireNonNull(this.profile.getName(), "profile name");
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the UUID of the profile that was looked up.
|
||||
*
|
||||
* @return the UUID of the profile
|
||||
*/
|
||||
public UUID getId() {
|
||||
return Objects.requireNonNull(this.profile.getId(), "profile id");
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The profile that was recently looked up. This profile can be mutated
|
||||
* @deprecated This event is only called after UUID lookups, properties set here will be ignored. Use {@link FillProfileEvent} for setting properties.
|
||||
*/
|
||||
@Deprecated(forRemoval = true, since = "1.21.9")
|
||||
public PlayerProfile getPlayerProfile() {
|
||||
return this.profile;
|
||||
}
|
||||
|
||||
+7
-1
@@ -69,7 +69,9 @@ public class PreLookupProfileEvent extends Event {
|
||||
/**
|
||||
* @return The currently pending pre-populated properties.
|
||||
* Any property in this Set will be automatically prefilled on this Profile
|
||||
* @deprecated This event is only called for UUID lookups, properties set here will be ignored. Use {@link PreFillProfileEvent} for setting properties.
|
||||
*/
|
||||
@Deprecated(forRemoval = true, since = "1.21.9")
|
||||
public Set<ProfileProperty> getProfileProperties() {
|
||||
return this.properties;
|
||||
}
|
||||
@@ -79,18 +81,22 @@ public class PreLookupProfileEvent extends Event {
|
||||
* Any property in this Set will be automatically prefilled on this Profile
|
||||
*
|
||||
* @param properties The properties to add
|
||||
* @deprecated This event is only called for UUID lookups, properties set here will be ignored. Use {@link PreFillProfileEvent} for setting properties.
|
||||
*/
|
||||
@Deprecated(forRemoval = true, since = "1.21.9")
|
||||
public void setProfileProperties(final Set<ProfileProperty> properties) {
|
||||
this.properties = new HashSet<>();
|
||||
this.properties.addAll(properties);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds any properties currently missing to the pre-populated properties set, replacing any that already were set.
|
||||
* Adds any properties currently missing to the pre-populated properties set, replacing any that already were set. Use {@link PreFillProfileEvent} for setting properties.
|
||||
* Any property in this Set will be automatically prefilled on this Profile
|
||||
*
|
||||
* @param properties The properties to add
|
||||
* @deprecated This event is only called for UUID lookups, properties set here will be ignored.
|
||||
*/
|
||||
@Deprecated(forRemoval = true, since = "1.21.9")
|
||||
public void addProfileProperties(final Set<ProfileProperty> properties) {
|
||||
this.properties.addAll(properties);
|
||||
}
|
||||
|
||||
+1
-1
@@ -477,7 +477,7 @@ public class PaperServerListPingEvent extends ServerListPingEvent implements Can
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.bukkit.profile.@NotNull PlayerProfile clone() {
|
||||
public @NotNull PlayerProfile clone() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
|
||||
@@ -4,15 +4,18 @@ import java.util.Collection;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import net.kyori.adventure.text.object.PlayerHeadObjectContents;
|
||||
import org.bukkit.profile.PlayerTextures;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
import static net.kyori.adventure.text.object.PlayerHeadObjectContents.property;
|
||||
|
||||
/**
|
||||
* Represents a players profile for the game, such as UUID, Name, and textures.
|
||||
*/
|
||||
@NullMarked
|
||||
public interface PlayerProfile extends org.bukkit.profile.PlayerProfile {
|
||||
public interface PlayerProfile extends org.bukkit.profile.PlayerProfile, PlayerHeadObjectContents.SkinSource {
|
||||
|
||||
/**
|
||||
* @return The players name, if set
|
||||
@@ -51,7 +54,7 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile {
|
||||
* This will build a snapshot of the current texture data once
|
||||
* requested inside PlayerTextures.
|
||||
*
|
||||
* @return the textures, not <code>null</code>
|
||||
* @return the textures
|
||||
*/
|
||||
@Override
|
||||
PlayerTextures getTextures();
|
||||
@@ -59,14 +62,14 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile {
|
||||
/**
|
||||
* Copies the given textures.
|
||||
*
|
||||
* @param textures the textures to copy, or <code>null</code> to clear the
|
||||
* @param textures the textures to copy, or {@code null} to clear the
|
||||
* textures
|
||||
*/
|
||||
@Override
|
||||
void setTextures(@Nullable PlayerTextures textures);
|
||||
|
||||
/**
|
||||
* @return A Mutable set of this players properties, such as textures.
|
||||
* @return A Mutable set of this player's properties, such as textures.
|
||||
* Values specified here are subject to implementation details.
|
||||
*/
|
||||
Set<ProfileProperty> getProperties();
|
||||
@@ -243,4 +246,27 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile {
|
||||
default boolean hasTextures() {
|
||||
return this.hasProperty("textures");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @return the cloned player profile.
|
||||
*/
|
||||
@Override
|
||||
PlayerProfile clone();
|
||||
|
||||
@Override
|
||||
default void applySkinToPlayerHeadContents(final PlayerHeadObjectContents.Builder builder) {
|
||||
if (this.getProperties().isEmpty() && (this.getName() != null) != (this.getId() != null)) {
|
||||
if (this.getId() != null) {
|
||||
builder.id(this.getId());
|
||||
} else {
|
||||
builder.name(this.getName());
|
||||
}
|
||||
return;
|
||||
}
|
||||
builder.id(this.getId())
|
||||
.name(this.getName())
|
||||
.profileProperties(this.getProperties().stream().map(prop -> property(prop.getName(), prop.getValue(), prop.getSignature())).toList());
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,9 @@ package com.destroystokyo.paper.util;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
@NullMarked
|
||||
public final class SneakyThrow {
|
||||
|
||||
@@ -40,6 +40,9 @@ public interface VersionFetcher {
|
||||
return getVersionMessage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @hidden
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
class DummyVersionFetcher implements VersionFetcher {
|
||||
|
||||
|
||||
-37
@@ -1,37 +0,0 @@
|
||||
package com.destroystokyo.paper.utils;
|
||||
|
||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
import java.util.concurrent.atomic.LongAdder;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
@NullMarked
|
||||
@ApiStatus.Internal
|
||||
public class CachedSizeConcurrentLinkedQueue<E> extends ConcurrentLinkedQueue<E> {
|
||||
|
||||
private final LongAdder cachedSize = new LongAdder();
|
||||
|
||||
@Override
|
||||
public boolean add(final E e) {
|
||||
final boolean result = super.add(e);
|
||||
if (result) {
|
||||
this.cachedSize.increment();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable E poll() {
|
||||
final E result = super.poll();
|
||||
if (result != null) {
|
||||
this.cachedSize.decrement();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int size() {
|
||||
return this.cachedSize.intValue();
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,18 @@
|
||||
package io.papermc.paper;
|
||||
|
||||
import com.destroystokyo.paper.SkinParts;
|
||||
import io.papermc.paper.command.brigadier.CommandSourceStack;
|
||||
import io.papermc.paper.datacomponent.item.ResolvableProfile;
|
||||
import io.papermc.paper.world.damagesource.CombatEntry;
|
||||
import io.papermc.paper.world.damagesource.FallLocationType;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.util.Services;
|
||||
import org.bukkit.block.Biome;
|
||||
import org.bukkit.damage.DamageEffect;
|
||||
import org.bukkit.damage.DamageSource;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.Contract;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
@@ -53,7 +57,7 @@ public interface InternalAPIBridge {
|
||||
@Deprecated(forRemoval = true, since = "1.21.5")
|
||||
@ApiStatus.ScheduledForRemoval(inVersion = "1.22")
|
||||
Biome constructLegacyCustomBiome();
|
||||
|
||||
|
||||
/**
|
||||
* Creates a new combat entry.
|
||||
* <p>
|
||||
@@ -86,5 +90,12 @@ public interface InternalAPIBridge {
|
||||
* @return wrapped predicate
|
||||
*/
|
||||
Predicate<CommandSourceStack> restricted(Predicate<CommandSourceStack> predicate);
|
||||
|
||||
ResolvableProfile defaultMannequinProfile();
|
||||
|
||||
@Contract(value = "-> new", pure = true)
|
||||
SkinParts.Mutable allSkinParts();
|
||||
|
||||
Component defaultMannequinDescription();
|
||||
}
|
||||
|
||||
+4
-6
@@ -1,4 +1,4 @@
|
||||
package io.papermc.paper.generated;
|
||||
package io.papermc.paper.annotation;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.lang.annotation.ElementType;
|
||||
@@ -8,14 +8,12 @@ import java.lang.annotation.Target;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
/**
|
||||
* Used to mark classes which are generated from
|
||||
* a specific version of minecraft.
|
||||
* Used to mark classes which are generated.
|
||||
* Any manual changes will be overwritten.
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
@Documented
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.TYPE)
|
||||
public @interface GeneratedFrom {
|
||||
|
||||
String value();
|
||||
public @interface GeneratedClass {
|
||||
}
|
||||
@@ -4,15 +4,12 @@ import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Implementing this interface allows for easily creating "Bukkit-style" {@code String[] args} commands.
|
||||
* The implementation handles converting the command to a representation compatible with Brigadier on registration, usually in the form of {@literal /commandlabel <greedy_string>}.
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@NullMarked
|
||||
@FunctionalInterface
|
||||
public interface BasicCommand {
|
||||
|
||||
|
||||
@@ -2,11 +2,13 @@ package io.papermc.paper.command.brigadier;
|
||||
|
||||
import com.mojang.brigadier.RedirectModifier;
|
||||
import com.mojang.brigadier.tree.CommandNode;
|
||||
import net.kyori.adventure.text.ComponentLike;
|
||||
import org.bukkit.GameRule;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
/**
|
||||
@@ -21,8 +23,6 @@ import org.jspecify.annotations.Nullable;
|
||||
* exist yet, or no specific sender is available. Methods on such a {@link CommandSender}
|
||||
* will either have no effect or throw an {@link UnsupportedOperationException}.</p>
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@NullMarked
|
||||
@ApiStatus.NonExtendable
|
||||
public interface CommandSourceStack {
|
||||
|
||||
@@ -70,4 +70,34 @@ public interface CommandSourceStack {
|
||||
* @see com.mojang.brigadier.builder.ArgumentBuilder#fork(CommandNode, RedirectModifier)
|
||||
*/
|
||||
CommandSourceStack withExecutor(Entity executor);
|
||||
|
||||
/**
|
||||
* Sends a system message to the {@link #getExecutor()} if it is a {@link Player},
|
||||
* otherwise sends a system message to the {@link #getSender()}.
|
||||
*
|
||||
* @param message the message to send
|
||||
*/
|
||||
void sendToTarget(ComponentLike message);
|
||||
|
||||
/**
|
||||
* Sends a system message to the {@link #getSender()}, admins, and console indicating successful command execution
|
||||
* according to vanilla semantics.
|
||||
*
|
||||
* <p>This currently includes checking for environments with suppressed output,
|
||||
* {@link GameRule#SEND_COMMAND_FEEDBACK}, and {@link GameRule#LOG_ADMIN_COMMANDS}.</p>
|
||||
*
|
||||
* @param message the message to send
|
||||
* @param allowInformingAdmins whether admins and console may be informed of this success
|
||||
*/
|
||||
void sendSuccess(ComponentLike message, boolean allowInformingAdmins);
|
||||
|
||||
/**
|
||||
* Sends a system message indicating a failed command execution to the {@link #getSender()}.
|
||||
* Does not apply red styling to the message as vanilla does to allow for custom failure message styling.
|
||||
*
|
||||
* <p>Respects vanilla semantics for accepting failure output and suppressed output environments.</p>
|
||||
*
|
||||
* @param message the message to send
|
||||
*/
|
||||
void sendFailure(ComponentLike message);
|
||||
}
|
||||
@@ -17,7 +17,6 @@ import java.util.Set;
|
||||
import java.util.function.Predicate;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.Unmodifiable;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
/**
|
||||
@@ -60,8 +59,6 @@ import org.jspecify.annotations.Nullable;
|
||||
*
|
||||
* @see io.papermc.paper.plugin.lifecycle.event.types.LifecycleEvents#COMMANDS
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@NullMarked
|
||||
@ApiStatus.NonExtendable
|
||||
public interface Commands extends Registrar {
|
||||
|
||||
|
||||
+6
-4
@@ -1,16 +1,15 @@
|
||||
package io.papermc.paper.command.brigadier;
|
||||
|
||||
import com.mojang.brigadier.Message;
|
||||
import java.util.Optional;
|
||||
import java.util.ServiceLoader;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.serializer.ComponentSerializer;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
* A component serializer for converting between {@link Message} and {@link Component}.
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@NullMarked
|
||||
@ApiStatus.NonExtendable
|
||||
public interface MessageComponentSerializer extends ComponentSerializer<Component, Component, Message> {
|
||||
|
||||
@@ -20,6 +19,9 @@ public interface MessageComponentSerializer extends ComponentSerializer<Componen
|
||||
* @return serializer instance
|
||||
*/
|
||||
static MessageComponentSerializer message() {
|
||||
return MessageComponentSerializerHolder.PROVIDER.orElseThrow();
|
||||
final class Holder {
|
||||
static final Optional<MessageComponentSerializer> PROVIDER = ServiceLoader.load(MessageComponentSerializer.class, MessageComponentSerializer.class.getClassLoader()).findFirst();
|
||||
}
|
||||
return Holder.PROVIDER.orElseThrow();
|
||||
}
|
||||
}
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
package io.papermc.paper.command.brigadier;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.ServiceLoader;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
@ApiStatus.Internal
|
||||
final class MessageComponentSerializerHolder {
|
||||
|
||||
static final Optional<MessageComponentSerializer> PROVIDER = ServiceLoader.load(MessageComponentSerializer.class)
|
||||
.findFirst();
|
||||
}
|
||||
+79
-3
@@ -1,10 +1,14 @@
|
||||
package io.papermc.paper.command.brigadier.argument;
|
||||
|
||||
import com.mojang.brigadier.arguments.ArgumentType;
|
||||
import io.papermc.paper.command.brigadier.argument.predicate.BlockInWorldPredicate;
|
||||
import io.papermc.paper.command.brigadier.argument.predicate.ItemStackPredicate;
|
||||
import io.papermc.paper.command.brigadier.argument.range.DoubleRangeProvider;
|
||||
import io.papermc.paper.command.brigadier.argument.range.IntegerRangeProvider;
|
||||
import io.papermc.paper.command.brigadier.argument.resolvers.AngleResolver;
|
||||
import io.papermc.paper.command.brigadier.argument.resolvers.BlockPositionResolver;
|
||||
import io.papermc.paper.command.brigadier.argument.resolvers.ColumnBlockPositionResolver;
|
||||
import io.papermc.paper.command.brigadier.argument.resolvers.ColumnFinePositionResolver;
|
||||
import io.papermc.paper.command.brigadier.argument.resolvers.FinePositionResolver;
|
||||
import io.papermc.paper.command.brigadier.argument.resolvers.PlayerProfileListResolver;
|
||||
import io.papermc.paper.command.brigadier.argument.resolvers.RotationResolver;
|
||||
@@ -13,11 +17,14 @@ import io.papermc.paper.command.brigadier.argument.resolvers.selector.PlayerSele
|
||||
import io.papermc.paper.entity.LookAnchor;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import net.kyori.adventure.key.Key;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.format.NamedTextColor;
|
||||
import net.kyori.adventure.text.format.Style;
|
||||
import net.kyori.adventure.text.format.TextColor;
|
||||
import org.bukkit.Axis;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.HeightMap;
|
||||
import org.bukkit.NamespacedKey;
|
||||
@@ -29,7 +36,6 @@ import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.scoreboard.Criteria;
|
||||
import org.bukkit.scoreboard.DisplaySlot;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
import static io.papermc.paper.command.brigadier.argument.VanillaArgumentProvider.provider;
|
||||
|
||||
@@ -41,8 +47,6 @@ import static io.papermc.paper.command.brigadier.argument.VanillaArgumentProvide
|
||||
*
|
||||
* <p>{@link CustomArgumentType} is provided for customizing parsing or result types server-side, while sending the vanilla argument type to the client.</p>
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@NullMarked
|
||||
public final class ArgumentTypes {
|
||||
|
||||
/**
|
||||
@@ -104,6 +108,26 @@ public final class ArgumentTypes {
|
||||
return provider().blockPosition();
|
||||
}
|
||||
|
||||
/**
|
||||
* A column block position argument.
|
||||
*
|
||||
* @return column block position argument
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static ArgumentType<ColumnBlockPositionResolver> columnBlockPosition() {
|
||||
return provider().columnBlockPosition();
|
||||
}
|
||||
|
||||
/**
|
||||
* A block predicate argument.
|
||||
*
|
||||
* @return block predicate argument
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static ArgumentType<BlockInWorldPredicate> blockInWorldPredicate() {
|
||||
return provider().blockInWorldPredicate();
|
||||
}
|
||||
|
||||
/**
|
||||
* A fine position argument.
|
||||
*
|
||||
@@ -124,6 +148,28 @@ public final class ArgumentTypes {
|
||||
return provider().finePosition(centerIntegers);
|
||||
}
|
||||
|
||||
/**
|
||||
* A column fine position argument.
|
||||
*
|
||||
* @return column fine position argument
|
||||
* @see #columnFinePosition(boolean) to center whole numbers
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static ArgumentType<ColumnFinePositionResolver> columnFinePosition() {
|
||||
return columnFinePosition(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* A column fine position argument.
|
||||
*
|
||||
* @param centerIntegers if whole numbers should be centered (+0.5)
|
||||
* @return column fine position argument
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static ArgumentType<ColumnFinePositionResolver> columnFinePosition(final boolean centerIntegers) {
|
||||
return provider().columnFinePosition(centerIntegers);
|
||||
}
|
||||
|
||||
/**
|
||||
* A rotation argument.
|
||||
*
|
||||
@@ -133,6 +179,27 @@ public final class ArgumentTypes {
|
||||
return provider().rotation();
|
||||
}
|
||||
|
||||
/**
|
||||
* An angle argument.
|
||||
*
|
||||
* @return angle argument
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static ArgumentType<AngleResolver> angle() {
|
||||
return provider().angle();
|
||||
}
|
||||
|
||||
/**
|
||||
* An argument used to resolve a set of axes.
|
||||
*
|
||||
* @return a set of axes.
|
||||
* @see org.bukkit.Axis
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
public static ArgumentType<AxisSet> axes() {
|
||||
return provider().axes();
|
||||
}
|
||||
|
||||
/**
|
||||
* A blockstate argument which will provide rich parsing for specifying
|
||||
* the specific block variant and then the block entity NBT if applicable.
|
||||
@@ -171,6 +238,15 @@ public final class ArgumentTypes {
|
||||
return provider().namedColor();
|
||||
}
|
||||
|
||||
/**
|
||||
* A hex color argument.
|
||||
*
|
||||
* @return argument
|
||||
*/
|
||||
public static ArgumentType<TextColor> hexColor() {
|
||||
return provider().hexColor();
|
||||
}
|
||||
|
||||
/**
|
||||
* A component argument.
|
||||
*
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package io.papermc.paper.command.brigadier.argument;
|
||||
|
||||
import com.mojang.brigadier.context.CommandContext;
|
||||
import org.bukkit.Axis;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* A set of {@link Axis} intended for use in {@link CommandContext#getArgument(String, Class)} instead of a raw {@link Set}.
|
||||
*/
|
||||
public interface AxisSet extends Set<Axis> {
|
||||
|
||||
}
|
||||
-4
@@ -9,7 +9,6 @@ import com.mojang.brigadier.suggestion.SuggestionsBuilder;
|
||||
import java.util.Collection;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
* An argument type that wraps around a native-to-vanilla argument type.
|
||||
@@ -23,8 +22,6 @@ import org.jspecify.annotations.NullMarked;
|
||||
* @param <T> custom type
|
||||
* @param <N> type with an argument native to vanilla Minecraft (from {@link ArgumentTypes})
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@NullMarked
|
||||
public interface CustomArgumentType<T, N> extends ArgumentType<T> {
|
||||
|
||||
/**
|
||||
@@ -107,7 +104,6 @@ public interface CustomArgumentType<T, N> extends ArgumentType<T> {
|
||||
* @param <T> custom type
|
||||
* @param <N> type with an argument native to vanilla Minecraft (from {@link ArgumentTypes})
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
interface Converted<T, N> extends CustomArgumentType<T, N> {
|
||||
|
||||
@ApiStatus.NonExtendable
|
||||
|
||||
-2
@@ -3,12 +3,10 @@ package io.papermc.paper.command.brigadier.argument;
|
||||
import com.mojang.brigadier.context.CommandContext;
|
||||
import io.papermc.paper.registry.RegistryKey;
|
||||
import io.papermc.paper.registry.TypedKey;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
* Utilities for extracting registry-related arguments from a {@link CommandContext}.
|
||||
*/
|
||||
@NullMarked
|
||||
public final class RegistryArgumentExtractor {
|
||||
|
||||
/**
|
||||
|
||||
-4
@@ -6,15 +6,12 @@ import io.papermc.paper.command.brigadier.CommandSourceStack;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import net.kyori.adventure.chat.SignedMessage;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
* A resolver for a {@link SignedMessage}
|
||||
*
|
||||
* @see ArgumentTypes#signedMessage()
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@NullMarked
|
||||
@ApiStatus.NonExtendable
|
||||
public interface SignedMessageResolver {
|
||||
|
||||
@@ -38,5 +35,4 @@ public interface SignedMessageResolver {
|
||||
* @throws CommandSyntaxException syntax exception
|
||||
*/
|
||||
CompletableFuture<SignedMessage> resolveSignedMessage(String argumentName, CommandContext<CommandSourceStack> context) throws CommandSyntaxException;
|
||||
|
||||
}
|
||||
+19
-5
@@ -1,10 +1,14 @@
|
||||
package io.papermc.paper.command.brigadier.argument;
|
||||
|
||||
import com.mojang.brigadier.arguments.ArgumentType;
|
||||
import io.papermc.paper.command.brigadier.argument.predicate.BlockInWorldPredicate;
|
||||
import io.papermc.paper.command.brigadier.argument.predicate.ItemStackPredicate;
|
||||
import io.papermc.paper.command.brigadier.argument.range.DoubleRangeProvider;
|
||||
import io.papermc.paper.command.brigadier.argument.range.IntegerRangeProvider;
|
||||
import io.papermc.paper.command.brigadier.argument.resolvers.AngleResolver;
|
||||
import io.papermc.paper.command.brigadier.argument.resolvers.BlockPositionResolver;
|
||||
import io.papermc.paper.command.brigadier.argument.resolvers.ColumnBlockPositionResolver;
|
||||
import io.papermc.paper.command.brigadier.argument.resolvers.ColumnFinePositionResolver;
|
||||
import io.papermc.paper.command.brigadier.argument.resolvers.FinePositionResolver;
|
||||
import io.papermc.paper.command.brigadier.argument.resolvers.PlayerProfileListResolver;
|
||||
import io.papermc.paper.command.brigadier.argument.resolvers.RotationResolver;
|
||||
@@ -20,6 +24,7 @@ import net.kyori.adventure.key.Key;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.format.NamedTextColor;
|
||||
import net.kyori.adventure.text.format.Style;
|
||||
import net.kyori.adventure.text.format.TextColor;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.HeightMap;
|
||||
import org.bukkit.NamespacedKey;
|
||||
@@ -31,14 +36,11 @@ import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.scoreboard.Criteria;
|
||||
import org.bukkit.scoreboard.DisplaySlot;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
@ApiStatus.Internal
|
||||
@NullMarked
|
||||
interface VanillaArgumentProvider {
|
||||
|
||||
Optional<VanillaArgumentProvider> PROVIDER = ServiceLoader.load(VanillaArgumentProvider.class)
|
||||
.findFirst();
|
||||
Optional<VanillaArgumentProvider> PROVIDER = ServiceLoader.load(VanillaArgumentProvider.class, VanillaArgumentProvider.class.getClassLoader()).findFirst();
|
||||
|
||||
static VanillaArgumentProvider provider() {
|
||||
return PROVIDER.orElseThrow();
|
||||
@@ -56,18 +58,30 @@ interface VanillaArgumentProvider {
|
||||
|
||||
ArgumentType<BlockPositionResolver> blockPosition();
|
||||
|
||||
ArgumentType<ColumnBlockPositionResolver> columnBlockPosition();
|
||||
|
||||
ArgumentType<FinePositionResolver> finePosition(boolean centerIntegers);
|
||||
|
||||
ArgumentType<ColumnFinePositionResolver> columnFinePosition(boolean centerIntegers);
|
||||
|
||||
ArgumentType<RotationResolver> rotation();
|
||||
|
||||
ArgumentType<AngleResolver> angle();
|
||||
|
||||
ArgumentType<AxisSet> axes();
|
||||
|
||||
ArgumentType<BlockState> blockState();
|
||||
|
||||
ArgumentType<BlockInWorldPredicate> blockInWorldPredicate();
|
||||
|
||||
ArgumentType<ItemStack> itemStack();
|
||||
|
||||
ArgumentType<ItemStackPredicate> itemStackPredicate();
|
||||
|
||||
ArgumentType<NamedTextColor> namedColor();
|
||||
|
||||
ArgumentType<TextColor> hexColor();
|
||||
|
||||
ArgumentType<Component> component();
|
||||
|
||||
ArgumentType<Style> style();
|
||||
@@ -86,7 +100,7 @@ interface VanillaArgumentProvider {
|
||||
ArgumentType<DoubleRangeProvider> doubleRange();
|
||||
|
||||
ArgumentType<World> world();
|
||||
|
||||
|
||||
ArgumentType<GameMode> gameMode();
|
||||
|
||||
ArgumentType<HeightMap> heightMap();
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Arguments.
|
||||
*/
|
||||
@NullMarked
|
||||
package io.papermc.paper.command.brigadier.argument;
|
||||
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
package io.papermc.paper.command.brigadier.argument.position;
|
||||
|
||||
import io.papermc.paper.math.BlockPosition;
|
||||
import io.papermc.paper.math.Position;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
* A block position, which does not have a y value.
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@NullMarked
|
||||
public interface ColumnBlockPosition {
|
||||
|
||||
/**
|
||||
* Gets the X-coordinate of the block position.
|
||||
*
|
||||
* @return the block's X-coordinate
|
||||
*/
|
||||
int blockX();
|
||||
|
||||
/**
|
||||
* Gets the Z-coordinate of the block position.
|
||||
*
|
||||
* @return the block's Z-coordinate
|
||||
*/
|
||||
int blockZ();
|
||||
|
||||
/**
|
||||
* Converts this column-based position into a full 3D {@link BlockPosition}
|
||||
* by supplying a Y-coordinate.
|
||||
*
|
||||
* @param y the Y-coordinate to include in the new position
|
||||
* @return a {@link BlockPosition} representing the full 3D position
|
||||
*/
|
||||
default BlockPosition toPosition(final int y) {
|
||||
return Position.block(this.blockX(), y, this.blockZ());
|
||||
}
|
||||
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
package io.papermc.paper.command.brigadier.argument.position;
|
||||
|
||||
import io.papermc.paper.math.FinePosition;
|
||||
import io.papermc.paper.math.Position;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
|
||||
/**
|
||||
* A fine position, which does not hold a y value.
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@NullMarked
|
||||
public interface ColumnFinePosition {
|
||||
|
||||
/**
|
||||
* Gets the X-coordinate of this position.
|
||||
*
|
||||
* @return the X-coordinate as a double
|
||||
*/
|
||||
double x();
|
||||
|
||||
/**
|
||||
* Gets the Z-coordinate of this position.
|
||||
*
|
||||
* @return the Z-coordinate as a double
|
||||
*/
|
||||
double z();
|
||||
|
||||
/**
|
||||
* Converts this column-based position into a full 3D {@link FinePosition}
|
||||
* by supplying a Y-coordinate.
|
||||
*
|
||||
* @param y the Y-coordinate to include in the new position
|
||||
* @return a {@link FinePosition} representing the full 3D position
|
||||
*/
|
||||
default FinePosition toPosition(final double y) {
|
||||
return Position.fine(this.x(), y, this.z());
|
||||
}
|
||||
}
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
package io.papermc.paper.command.brigadier.argument.predicate;
|
||||
|
||||
import io.papermc.paper.command.brigadier.argument.ArgumentTypes;
|
||||
import org.bukkit.block.Block;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
/**
|
||||
* A predicate for a {@link Block}.
|
||||
*
|
||||
* @see ArgumentTypes#blockInWorldPredicate()
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@ApiStatus.NonExtendable
|
||||
public interface BlockInWorldPredicate {
|
||||
|
||||
/**
|
||||
* Checks if the passed block matches the block predicate.
|
||||
* <p>
|
||||
* This method will load the chunk the block is at in a synchronous manner.
|
||||
*
|
||||
* @param block the block instance to check
|
||||
* @return the predicate result.
|
||||
*/
|
||||
default Result testBlock(final Block block) {
|
||||
return this.testBlock(block, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the passed block matches the block predicate.
|
||||
*
|
||||
* @param block the block instance to check
|
||||
* @param loadChunk if the chunk the block is located at should be loaded.
|
||||
* @return the predicate result.
|
||||
*/
|
||||
Result testBlock(Block block, boolean loadChunk);
|
||||
|
||||
/**
|
||||
* The predicate result is yielded by the {@link BlockInWorldPredicate} when applied to a block.
|
||||
*
|
||||
* @see #testBlock(Block)
|
||||
* @see #testBlock(Block, boolean)
|
||||
*/
|
||||
enum Result {
|
||||
/**
|
||||
* The block passed to the predicate matches the predicate.
|
||||
*/
|
||||
TRUE,
|
||||
|
||||
/**
|
||||
* The block passed to the predicate does not match the predicate.
|
||||
*/
|
||||
FALSE,
|
||||
|
||||
/**
|
||||
* The block passed to the predicate was in an unloaded chunk and the {@code loadChunk} flag was false.
|
||||
*/
|
||||
UNLOADED_CHUNK,
|
||||
;
|
||||
|
||||
/**
|
||||
* Converts the result into an approximated boolean representation.
|
||||
* Specifically, the following mappings are applied:
|
||||
* <ul>
|
||||
* <li>{@link #TRUE} -> {@code true}</li>
|
||||
* <li>{@link #FALSE} -> {@code false}</li>
|
||||
* <li>{@link #UNLOADED_CHUNK} -> {@code false}</li>
|
||||
* </ul>
|
||||
*
|
||||
* @return the boolean representation.
|
||||
*/
|
||||
public boolean asBoolean() {
|
||||
return this == TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
-1
@@ -9,7 +9,6 @@ import org.jetbrains.annotations.ApiStatus;
|
||||
*
|
||||
* @see io.papermc.paper.command.brigadier.argument.ArgumentTypes#itemPredicate()
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@ApiStatus.NonExtendable
|
||||
public interface ItemStackPredicate extends Predicate<ItemStack> {
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Predicates for argument types.
|
||||
*/
|
||||
@NullMarked
|
||||
package io.papermc.paper.command.brigadier.argument.predicate;
|
||||
|
||||
import org.jspecify.annotations.NullMarked;
|
||||
-2
@@ -7,8 +7,6 @@ import org.jetbrains.annotations.ApiStatus;
|
||||
*
|
||||
* @see io.papermc.paper.command.brigadier.argument.ArgumentTypes#doubleRange()
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@ApiStatus.NonExtendable
|
||||
public non-sealed interface DoubleRangeProvider extends RangeProvider<Double> {
|
||||
|
||||
}
|
||||
-2
@@ -7,8 +7,6 @@ import org.jetbrains.annotations.ApiStatus;
|
||||
*
|
||||
* @see io.papermc.paper.command.brigadier.argument.ArgumentTypes#integerRange()
|
||||
*/
|
||||
@ApiStatus.Experimental
|
||||
@ApiStatus.NonExtendable
|
||||
public non-sealed interface IntegerRangeProvider extends RangeProvider<Integer> {
|
||||
|
||||
}
|
||||
Loaded 100 of 1399 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user