Package com.mojang.nbt

Examples of com.mojang.nbt.ShortTag


    public CompoundTag getTag()
    {
        if(tag == null)
            tag = new CompoundTag("Schematic");

        ShortTag tagW = new ShortTag("Width", (short)width);
        ShortTag tagH = new ShortTag("Height", (short)height);
        ShortTag tagL = new ShortTag("Length", (short)length);
        StringTag tagMat = new StringTag("Materials", "Alpha");
        ByteArrayTag tagBlockid = new ByteArrayTag("Blocks", blockid);
        ByteArrayTag tagMetadata = new ByteArrayTag("Data", metadata);

        tag.put("Width", tagW);
View Full Code Here


    }
   
    public EntityImpl createXPOrb(int x, int y, int z, int value)
    {
        CompoundTag root = createEntityRoot(x, y, z, "XPOrb");
        root.put("Health", new ShortTag("Health", (short)5));
        root.put("Age", new ShortTag("Age", (short)0));
        root.put("Value", new ShortTag("Value", (short)value));
        return new EntityImpl(root);
    }
View Full Code Here

        rotation.add(new FloatTag("yaw", 0));
        rotation.add(new FloatTag("pitch", 0));
        root.put("Rotation", rotation);

        root.put("FallDistance", new FloatTag("FallDistance", 0));
        root.put("Fire", new ShortTag("Fire", (short)0));
        root.put("Air", new ShortTag("Air", (short)0));
        root.put("OnGround", new ByteTag("OnGround", (byte)0));
        root.put("Dimension", new IntTag("Dimension", 0));
        root.put("Invulnerable", new ByteTag("Invulnerable", (byte)1));
        root.put("PortalCooldown", new IntTag("PortalCooldown", 0));
       
View Full Code Here

TOP

Related Classes of com.mojang.nbt.ShortTag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.