Examples of func_150308_e()


Examples of net.minecraft.nbt.NBTTagList.func_150308_e()

    pos = context.rotatePositionLeft(pos);
    cpt.setTag("Pos",
        this.newDoubleNBTList(pos.x, pos.y, pos.z));

    nbttaglist = cpt.getTagList("Rotation", 5);
    float yaw = nbttaglist.func_150308_e(0);
    yaw += 90;
    cpt.setTag(
        "Rotation",
        this.newFloatNBTList(yaw,
            nbttaglist.func_150308_e(1)));
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.func_150308_e()

    float yaw = nbttaglist.func_150308_e(0);
    yaw += 90;
    cpt.setTag(
        "Rotation",
        this.newFloatNBTList(yaw,
            nbttaglist.func_150308_e(1)));
  }

  @Override
  public void writeToNBT(NBTTagCompound nbt, MappingRegistry registry) {
    NBTTagList nbttaglist = cpt.getTagList("Pos", 6);
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.func_150308_e()

    pos = context.rotatePositionLeft(pos);
    entityNBT.setTag("Pos",
        this.newDoubleNBTList(pos.x, pos.y, pos.z));

    nbttaglist = entityNBT.getTagList("Rotation", 5);
    float yaw = nbttaglist.func_150308_e(0);
    yaw += 90;
    entityNBT.setTag(
        "Rotation",
        this.newFloatNBTList(yaw,
            nbttaglist.func_150308_e(1)));
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.func_150308_e()

    float yaw = nbttaglist.func_150308_e(0);
    yaw += 90;
    entityNBT.setTag(
        "Rotation",
        this.newFloatNBTList(yaw,
            nbttaglist.func_150308_e(1)));
  }

  @Override
  public void writeToNBT(NBTTagCompound nbt, MappingRegistry registry) {
    super.writeToNBT(nbt, registry);
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.func_150308_e()

                ArrayList<Object> vlist = new ArrayList<Object>();
                int type = tl.func_150303_d();
                for (int i = 0; i < tl.tagCount(); i++) {
                    switch (type) {
                        case 5:
                            float fv = tl.func_150308_e(i);
                            vlist.add(fv);
                            break;
                        case 6:
                            double dv = tl.func_150309_d(i);
                            vlist.add(dv);
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.func_150308_e()

        {
            NBTTagList list = tag.getTagList(name, new NBTTagFloat(0f).getId());
            float[] array = new float[list.tagCount()];
            for (int i = 0; i < array.length; i++)
            {
                array[i] = list.func_150308_e(i);
            }

            return array;
        }
        else if (type.equals(double.class))
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.func_150308_e()

    pos = context.rotatePositionLeft(pos);
    entityNBT.setTag("Pos",
        this.newDoubleNBTList(pos.x, pos.y, pos.z));

    nbttaglist = entityNBT.getTagList("Rotation", 5);
    float yaw = nbttaglist.func_150308_e(0);
    yaw += 90;
    entityNBT.setTag(
        "Rotation",
        this.newFloatNBTList(yaw,
            nbttaglist.func_150308_e(1)));
View Full Code Here

Examples of net.minecraft.nbt.NBTTagList.func_150308_e()

    float yaw = nbttaglist.func_150308_e(0);
    yaw += 90;
    entityNBT.setTag(
        "Rotation",
        this.newFloatNBTList(yaw,
            nbttaglist.func_150308_e(1)));
  }

  @Override
  public void writeSchematicToNBT(NBTTagCompound nbt, MappingRegistry registry) {
    super.writeSchematicToNBT(nbt, registry);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.