VisCraftingHelper.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:ThaumicEnergistics 作者:
/**
 * Gets an itemstack representing a fully charged silverwood and thaumium
 * crafting scepter.
 *
 * @return
 */
public ItemStack getCraftingScepter()
{
    if( this.craftingScepter == null )
    {
        // Create the item
        this.craftingScepter = new ItemStack( ConfigItems.itemWandCasting, 1, 32767 );

        // Set rod type to thaumium
        ( (ItemWandCasting)this.craftingScepter.getItem() ).setCap( this.craftingScepter, ConfigItems.WAND_CAP_THAUMIUM );

        // Set cap type to silverwood
        ( (ItemWandCasting)this.craftingScepter.getItem() ).setRod( this.craftingScepter, ConfigItems.WAND_ROD_SILVERWOOD );

        // Set that it is a scepter
        this.craftingScepter.setTagInfo( "sceptre", new NBTTagByte( (byte)1 ) );

        // Max out vis storage
        for( Aspect aspect : Aspect.getPrimalAspects() )
        {
            ( (ItemWandCasting)this.craftingScepter.getItem() ).addVis( this.craftingScepter, aspect,
                ( (ItemWandCasting)this.craftingScepter.getItem() ).getMaxVis( this.craftingScepter ), true );
        }
    }

    return this.craftingScepter;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号