Package fr.robie.machineengine.api.paper
package fr.robie.machineengine.api.paper
-
ClassDescriptionLoads a plugin's own classes when it starts.Changes machine and transport blocks in the world.What a machine's block does when a player clicks it or an entity steps on it, on Paper (D32).A click on a machine's block with the main hand.What a machine type's block does; every method's default does nothing.Opens machine menus (§23.3).A CraftEngine item behavior written with Bukkit types (D32): right-clicks with the item in the main hand arrive as one
PaperItemBehavior.use(Use), whether on a block or in the air, andPaperItemBehavior.useOnEntity(Player, ItemStack, Entity)on an entity.A right-click with the item.Resources held by items on Paper (D32): what an item holds comes from itsResourceItemCraftEngine behaviors, the amounts live in its CraftEngine item data underminecraft:custom_data→machineengine.resources.<type>.Converts between PaperItemStacks andItems.ITEMresources (§23.4).Optional[<x y z>] [<world>]arguments that default to the player running the command.What a player's position defaults to when no coordinates are given.A command position: a world and block coordinates.The color of resources in menus (thestorage_<id>_colorplaceholders), as0xRRGGBB: tinted fill bars take it, e.g.How resources are named in menus (thestorage_<id>_nameplaceholders), as MiniMessage text: addons name their own resources, e.g.