Search in sources :

Example 41 with Slot

use of net.minecraft.server.v1_16_R3.Slot in project PaperDev by Kamillaova.

the class CraftContainer method setupWorkbench.

private void setupWorkbench(IInventory top, IInventory bottom) {
    // This code copied from ContainerWorkbench
    this.a(new Slot(top, 0, 124, 35));
    int row;
    int col;
    for (row = 0; row < 3; ++row) {
        for (col = 0; col < 3; ++col) {
            this.a(new Slot(top, 1 + col + row * 3, 30 + col * 18, 17 + row * 18));
        }
    }
    for (row = 0; row < 3; ++row) {
        for (col = 0; col < 9; ++col) {
            this.a(new Slot(bottom, col + row * 9 + 9, 8 + col * 18, 84 + row * 18));
        }
    }
    for (col = 0; col < 9; ++col) {
        this.a(new Slot(bottom, col, 8 + col * 18, 142));
    }
// End copy from ContainerWorkbench
}
Also used : Slot(net.minecraft.server.v1_12_R1.Slot)

Aggregations

CraftItemStack (org.bukkit.craftbukkit.v1_16_R3.inventory.CraftItemStack)19 Pair (com.mojang.datafixers.util.Pair)18 MyPetApi (de.Keyle.MyPet.MyPetApi)17 Util (de.Keyle.MyPet.api.Util)17 EntitySize (de.Keyle.MyPet.api.entity.EntitySize)17 EquipmentSlot (de.Keyle.MyPet.api.entity.EquipmentSlot)17 MyPet (de.Keyle.MyPet.api.entity.MyPet)17 EntityMyPet (de.Keyle.MyPet.compat.v1_16_R3.entity.EntityMyPet)17 InvocationTargetException (java.lang.reflect.InvocationTargetException)17 Arrays (java.util.Arrays)17 net.minecraft.server.v1_16_R3 (net.minecraft.server.v1_16_R3)17 Bukkit (org.bukkit.Bukkit)17 ENTITY_LIVING_broadcastItemBreak (de.Keyle.MyPet.compat.v1_16_R3.CompatManager.ENTITY_LIVING_broadcastItemBreak)14 Configuration (de.Keyle.MyPet.api.Configuration)9 PetState (de.Keyle.MyPet.api.entity.MyPet.PetState)6 CompatManager (de.Keyle.MyPet.compat.v1_16_R3.CompatManager)3 ItemStack (net.minecraft.server.v1_16_R3.ItemStack)3 NBTTagCompound (net.minecraft.server.v1_16_R3.NBTTagCompound)3 FailedNbt (com.ruinscraft.panilla.api.exception.FailedNbt)2 INbtTagCompound (com.ruinscraft.panilla.api.nbt.INbtTagCompound)2