Untitled

mail@pastecode.io avatar
unknown
java
2 years ago
456 B
0
Indexable
Never
    @Override
    protected void init() {
        int guiLeft = (this.width - 256) / 2;
        int guiTop = (this.height - 210) / 2;

        this.addButton(new CustomButton(guiLeft + 42, guiTop + 36, 15, 15, new StringTextComponent("+"), button -> {
            PacketHandler.INSTANCE.send(PacketDistributor.SERVER.noArg(), new UpgradeShinobiPlayerStatPacket("ninjutsu"));
            this.minecraft.player.closeContainer();
        }));
    }