File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1188,7 +1188,7 @@ index 0000000000000000000000000000000000000000..a128348247d8845321d3fecebaa09a51
1188
1188
+ }
1189
1189
diff --git a/src/main/java/io/papermc/paper/datacomponent/item/Equippable.java b/src/main/java/io/papermc/paper/datacomponent/item/Equippable.java
1190
1190
new file mode 100644
1191
- index 0000000000000000000000000000000000000000..f72d412a09c710f30eb219abc25ca4c95d49f4b1
1191
+ index 0000000000000000000000000000000000000000..d21a1cd4002a972c6e56cdf4c1e5f86414c56c12
1192
1192
--- /dev/null
1193
1193
+++ b/src/main/java/io/papermc/paper/datacomponent/item/Equippable.java
1194
1194
@@ -0,0 +1,169 @@
@@ -1307,13 +1307,13 @@ index 0000000000000000000000000000000000000000..f72d412a09c710f30eb219abc25ca4c9
1307
1307
+ Builder equipSound(Key sound);
1308
1308
+
1309
1309
+ /**
1310
- + * Sets the model key for this item.
1310
+ + * Sets the asset id for this item.
1311
1311
+ *
1312
- + * @param model the model key , nullable
1312
+ + * @param assetId the asset id , nullable
1313
1313
+ * @return the builder for chaining
1314
1314
+ */
1315
1315
+ @Contract(value = "_ -> this", mutates = "this")
1316
- + Builder assetId(@Nullable Key model );
1316
+ + Builder assetId(@Nullable Key assetId );
1317
1317
+
1318
1318
+ /**
1319
1319
+ * Sets the camera overlay key for this item.
Original file line number Diff line number Diff line change @@ -1255,7 +1255,7 @@ index 0000000000000000000000000000000000000000..422e1a4d606481f0dc68843fbbc8126c
1255
1255
+ }
1256
1256
diff --git a/src/main/java/io/papermc/paper/datacomponent/item/PaperEquippable.java b/src/main/java/io/papermc/paper/datacomponent/item/PaperEquippable.java
1257
1257
new file mode 100644
1258
- index 0000000000000000000000000000000000000000..f0c2b30069b2df060a39683636296567bce172a6
1258
+ index 0000000000000000000000000000000000000000..6d427d2c62cce557fa824dd347fd5d0c2ae7411e
1259
1259
--- /dev/null
1260
1260
+++ b/src/main/java/io/papermc/paper/datacomponent/item/PaperEquippable.java
1261
1261
@@ -0,0 +1,174 @@
@@ -1376,8 +1376,8 @@ index 0000000000000000000000000000000000000000..f0c2b30069b2df060a39683636296567
1376
1376
+ }
1377
1377
+
1378
1378
+ @Override
1379
- + public Builder assetId(final @Nullable Key model ) {
1380
- + this.assetId = Optional.ofNullable(model )
1379
+ + public Builder assetId(final @Nullable Key assetId ) {
1380
+ + this.assetId = Optional.ofNullable(assetId )
1381
1381
+ .map(key -> PaperAdventure.asVanilla(EquipmentAssets.ROOT_ID, key));
1382
1382
+
1383
1383
+ return this;
@@ -1422,7 +1422,7 @@ index 0000000000000000000000000000000000000000..f0c2b30069b2df060a39683636296567
1422
1422
+ new net.minecraft.world.item.equipment.Equippable(
1423
1423
+ this.equipmentSlot,
1424
1424
+ this.equipSound,
1425
- + null, // TODO
1425
+ + this.assetId,
1426
1426
+ this.cameraOverlay,
1427
1427
+ this.allowedEntities,
1428
1428
+ this.dispensable,
You can’t perform that action at this time.
0 commit comments