Package org.geysermc.geyser.item.type
Class DyeableHorseArmorItem
java.lang.Object
org.geysermc.geyser.item.type.Item
org.geysermc.geyser.item.type.DyeableHorseArmorItem
- All Implemented Interfaces:
DyeableLeatherItem
-
Nested Class Summary
Nested classes/interfaces inherited from class org.geysermc.geyser.item.type.Item
Item.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtranslateNbtToBedrock(@NonNull GeyserSession session, @NonNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag) Takes NBT from Java Edition and converts any value that Bedrock parses differently.voidtranslateNbtToJava(@NonNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag, @NonNull ItemMapping mapping) Takes NBT from Bedrock Edition and converts any value that Java parses differently.Methods inherited from class org.geysermc.geyser.item.type.Item
attackDamage, builder, isValidRepairItem, javaId, javaIdentifier, maxDamage, maxStackSize, newItemStack, remapEnchantment, setJavaId, toBedrockDefinition, toString, translateToBedrock, translateToJava
-
Constructor Details
-
DyeableHorseArmorItem
-
-
Method Details
-
translateNbtToBedrock
public void translateNbtToBedrock(@NonNull GeyserSession session, @NonNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag) Description copied from class:ItemTakes NBT from Java Edition and converts any value that Bedrock parses differently.- Overrides:
translateNbtToBedrockin classItem
-
translateNbtToJava
public void translateNbtToJava(@NonNull com.github.steveice10.opennbt.tag.builtin.CompoundTag tag, @NonNull ItemMapping mapping) Description copied from class:ItemTakes NBT from Bedrock Edition and converts any value that Java parses differently.
Do note that this method is, these days, only called in three places (as of 2023/~1.19):- Extra recipe loading
- Creative menu
- Stonecutters
- Overrides:
translateNbtToJavain classItem
-