Package org.geysermc.geyser.item.type
Class WrittenBookItem
java.lang.Object
org.geysermc.geyser.item.type.Item
org.geysermc.geyser.item.type.WrittenBookItem
-
Nested Class Summary
Nested classes/interfaces inherited from class org.geysermc.geyser.item.type.Item
Item.Builder -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class org.geysermc.geyser.item.type.Item
javaIdentifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtranslateComponentsToBedrock(@NonNull GeyserSession session, @NonNull org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents components, @NonNull BedrockItemBuilder builder) Takes components from Java Edition and map them into Bedrock.Methods inherited from class org.geysermc.geyser.item.type.Item
attackDamage, builder, byBlock, glint, ignoreDamage, isValidRepairItem, javaId, javaIdentifier, maxDamage, maxStackSize, newItemStack, rarity, registerBlock, remapEnchantment, setJavaId, toBedrockDefinition, toString, translateDyedColor, translateNbtToJava, translateToBedrock, translateToJava, translationKey
-
Field Details
-
MAXIMUM_PAGE_EDIT_LENGTH
public static final int MAXIMUM_PAGE_EDIT_LENGTH- See Also:
-
MAXIMUM_PAGE_COUNT
public static final int MAXIMUM_PAGE_COUNT- See Also:
-
MAXIMUM_TITLE_LENGTH
public static final int MAXIMUM_TITLE_LENGTH- See Also:
-
-
Constructor Details
-
WrittenBookItem
-
-
Method Details
-
translateComponentsToBedrock
public void translateComponentsToBedrock(@NonNull GeyserSession session, @NonNull org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents components, @NonNull BedrockItemBuilder builder) Description copied from class:ItemTakes components from Java Edition and map them into Bedrock.- Overrides:
translateComponentsToBedrockin classItem
-