Java 类net.minecraft.util.com.google.common.collect.HashMultimap 实例源码

项目:CraftBukkit    文件:ItemStack.java   
public Multimap D() {
    Object object;

    if (this.hasTag() && this.tag.hasKeyOfType("AttributeModifiers", 9)) {
        object = HashMultimap.create();
        NBTTagList nbttaglist = this.tag.getList("AttributeModifiers", 10);

        for (int i = 0; i < nbttaglist.size(); ++i) {
            NBTTagCompound nbttagcompound = nbttaglist.get(i);
            AttributeModifier attributemodifier = GenericAttributes.a(nbttagcompound);

            if (attributemodifier.a().getLeastSignificantBits() != 0L && attributemodifier.a().getMostSignificantBits() != 0L) {
                ((Multimap) object).put(nbttagcompound.getString("AttributeName"), attributemodifier);
            }
        }
    } else {
        object = this.getItem().k();
    }

    return (Multimap) object;
}
项目:Tweakkit-Server    文件:ItemStack.java   
public Multimap D() {
    Object object;

    if (this.hasTag() && this.tag.hasKeyOfType("AttributeModifiers", 9)) {
        object = HashMultimap.create();
        NBTTagList nbttaglist = this.tag.getList("AttributeModifiers", 10);

        for (int i = 0; i < nbttaglist.size(); ++i) {
            NBTTagCompound nbttagcompound = nbttaglist.get(i);
            AttributeModifier attributemodifier = GenericAttributes.a(nbttagcompound);

            if (attributemodifier.a().getLeastSignificantBits() != 0L && attributemodifier.a().getMostSignificantBits() != 0L) {
                ((Multimap) object).put(nbttagcompound.getString("AttributeName"), attributemodifier);
            }
        }
    } else {
        object = this.getItem().k();
    }

    return (Multimap) object;
}
项目:CraftBukkit    文件:Item.java   
public Multimap k() {
    return HashMultimap.create();
}
项目:Tweakkit-Server    文件:Item.java   
public Multimap k() {
    return HashMultimap.create();
}