Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package info.u_team.useful_backpacks.type;
- import net.minecraft.world.item.Rarity;
- public enum BackpackType {
- SMALL("small", Rarity.COMMON, 5, 2, 44, 24, 8, 64, 176, 142),
- MEDIUM("medium", Rarity.UNCOMMON, 7, 3, 26, 24, 8, 82, 176, 218),
- LARGE("large", Rarity.RARE, 9, 4, 8, 24, 8, 100, 176, 218);
- private final String name;
- private final Rarity rarity;
- private final int inventoryWidth, inventoryHeight;
- private final int slotBackpackX, slotBackpackY;
- private final int slotPlayerX, slotPlayerY;
- private final int textureSizeX, textureSizeY;
- private BackpackType(String name, Rarity rarity, int inventoryWidth, int inventoryHeight, int slotBackpackX, int slotBackpackY, int slotPlayerX, int slotPlayerY, int textureSizeX, int textureSizeY) {
- this.name = name;
- this.rarity = rarity;
- this.inventoryWidth = inventoryWidth;
- this.inventoryHeight = inventoryHeight;
- this.slotBackpackX = slotBackpackX;
- this.slotBackpackY = slotBackpackY;
- this.slotPlayerX = slotPlayerX;
- this.slotPlayerY = slotPlayerY;
- this.textureSizeX = textureSizeX;
- this.textureSizeY = textureSizeY;
- }
- public String getName() {
- return name;
- }
- public Rarity getRarity() {
- return rarity;
- }
- public int getInventoryWidth() {
- return inventoryWidth;
- }
- public int getInventoryHeight() {
- return inventoryHeight;
- }
- public int getInventorySize() {
- return inventoryWidth * inventoryHeight;
- }
- public int getSlotBackpackX() {
- return slotBackpackX;
- }
- public int getSlotBackpackY() {
- return slotBackpackY;
- }
- public int getSlotPlayerX() {
- return slotPlayerX;
- }
- public int getSlotPlayerY() {
- return slotPlayerY;
- }
- public int getTextureSizeX() {
- return textureSizeX;
- }
- public int getTextureSizeY() {
- return textureSizeY;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment