Hud display port and nulled out creativeTab

This commit is contained in:
Michael 2020-09-09 15:33:43 +01:00
parent 6139ca68fa
commit 78b9055eae
No known key found for this signature in database
GPG key ID: 971C5B254742488F
7 changed files with 407 additions and 394 deletions

View file

@ -11,6 +11,7 @@ import de.ellpeck.actuallyadditions.mod.util.StackUtil;
import de.ellpeck.actuallyadditions.mod.util.StringUtil; import de.ellpeck.actuallyadditions.mod.util.StringUtil;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.BlockDirectional; import net.minecraft.block.BlockDirectional;
import net.minecraft.block.BlockState;
import net.minecraft.block.SoundType; import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;
import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block.state.BlockStateContainer;
@ -20,24 +21,27 @@ import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.util.ITooltipFlag; import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items; import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.EnumRarity; import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing; import net.minecraft.util.*;
import net.minecraft.util.EnumHand;
import net.minecraft.util.Mirror;
import net.minecraft.util.Rotation;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.BlockRayTraceResult;
import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.RayTraceResult; import net.minecraft.util.math.RayTraceResult;
import net.minecraft.util.text.TextFormatting; import net.minecraft.util.text.TextFormatting;
import net.minecraft.world.IBlockReader;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.common.ToolType; import net.minecraftforge.common.ToolType;
import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.fml.relauncher.SideOnly;
import javax.annotation.Nullable;
import java.util.List; import java.util.List;
public class BlockAtomicReconstructor extends BlockContainerBase implements IHudDisplay { public class BlockAtomicReconstructor extends BlockContainerBase implements IHudDisplay {
@ -52,15 +56,19 @@ public class BlockAtomicReconstructor extends BlockContainerBase implements IHud
.sound(SoundType.STONE)); .sound(SoundType.STONE));
} }
@Override // @Override
public boolean isOpaqueCube(IBlockState state) { // public boolean isOpaqueCube(IBlockState state) {
return false; // return false;
} // }
@Override @Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing par6, float par7, float par8, float par9) { public ActionResultType onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockRayTraceResult hit) {
ItemStack heldItem = player.getHeldItem(hand); ItemStack heldItem = player.getHeldItem(hand);
if (this.tryToggleRedstone(world, pos, player)) { return true; } if (this.tryToggleRedstone(world, pos, player)) {
return ActionResultType.SUCCESS;
}
if (!world.isRemote) { if (!world.isRemote) {
TileEntityAtomicReconstructor reconstructor = (TileEntityAtomicReconstructor) world.getTileEntity(pos); TileEntityAtomicReconstructor reconstructor = (TileEntityAtomicReconstructor) world.getTileEntity(pos);
if (reconstructor != null) { if (reconstructor != null) {
@ -73,7 +81,7 @@ public class BlockAtomicReconstructor extends BlockContainerBase implements IHud
player.inventory.decrStackSize(player.inventory.currentItem, 1); player.inventory.decrStackSize(player.inventory.currentItem, 1);
} }
//Shush, don't tell anyone! //Shush, don't tell anyone!
else if (ConfigIntValues.ELEVEN.getValue() == 11 && item == Items.RECORD_11) { else if (ConfigIntValues.ELEVEN.getValue() == 11 && item == Items.MUSIC_DISC_11) {
reconstructor.counter++; reconstructor.counter++;
reconstructor.markDirty(); reconstructor.markDirty();
} }
@ -86,18 +94,19 @@ public class BlockAtomicReconstructor extends BlockContainerBase implements IHud
} }
} }
} }
return true; return ActionResultType.SUCCESS;
} }
@Nullable
@Override @Override
public TileEntity createNewTileEntity(World world, int i) { public TileEntity createTileEntity(BlockState state, IBlockReader world) {
return new TileEntityAtomicReconstructor(); return new TileEntityAtomicReconstructor();
} }
@Override @Override
@SideOnly(Side.CLIENT) @OnlyIn(Dist.CLIENT)
public void displayHud(Minecraft minecraft, EntityPlayer player, ItemStack stack, RayTraceResult posHit, ScaledResolution resolution) { public void displayHud(Minecraft minecraft, PlayerEntity player, ItemStack stack, RayTraceResult posHit, int scaledWidth, int scaledHeight) {
TileEntity tile = minecraft.world.getTileEntity(posHit.getBlockPos()); TileEntity tile = minecraft.world.getTileEntity(((BlockRayTraceResult) posHit).getPos());
if (tile instanceof TileEntityAtomicReconstructor) { if (tile instanceof TileEntityAtomicReconstructor) {
ItemStack slot = ((TileEntityAtomicReconstructor) tile).inv.getStackInSlot(0); ItemStack slot = ((TileEntityAtomicReconstructor) tile).inv.getStackInSlot(0);
String strg; String strg;

View file

@ -1,16 +1,17 @@
package de.ellpeck.actuallyadditions.mod.blocks; package de.ellpeck.actuallyadditions.mod.blocks;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.ScaledResolution; import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.math.RayTraceResult; import net.minecraft.util.math.RayTraceResult;
import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.api.distmarker.OnlyIn;
import javax.annotation.Nullable;
public interface IHudDisplay { public interface IHudDisplay {
@SideOnly(Side.CLIENT) @OnlyIn(Dist.CLIENT)
void displayHud(Minecraft minecraft, EntityPlayer player, ItemStack stack, RayTraceResult posHit, ScaledResolution resolution); void displayHud(Minecraft minecraft, PlayerEntity player, ItemStack stack, @Nullable RayTraceResult posHit, int scaledWidth, int scaledHeight);
} }

View file

@ -1,353 +1,354 @@
package de.ellpeck.actuallyadditions.mod.creative; // todo: reimplement this the normal 1.14+
//package de.ellpeck.actuallyadditions.mod.creative;
import de.ellpeck.actuallyadditions.api.misc.IDisableableItem; //
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions; //import de.ellpeck.actuallyadditions.api.misc.IDisableableItem;
import de.ellpeck.actuallyadditions.mod.blocks.InitBlocks; //import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
import de.ellpeck.actuallyadditions.mod.fluids.InitFluids; //import de.ellpeck.actuallyadditions.mod.blocks.InitBlocks;
import de.ellpeck.actuallyadditions.mod.items.InitItems; //import de.ellpeck.actuallyadditions.mod.fluids.InitFluids;
import net.minecraft.block.Block; //import de.ellpeck.actuallyadditions.mod.items.InitItems;
import net.minecraft.creativetab.CreativeTabs; //import net.minecraft.block.Block;
import net.minecraft.item.Item; //import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack; //import net.minecraft.item.Item;
import net.minecraft.util.NonNullList; //import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.Fluid; //import net.minecraft.util.NonNullList;
import net.minecraftforge.fluids.FluidStack; //import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidUtil; //import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fml.relauncher.Side; //import net.minecraftforge.fluids.FluidUtil;
import net.minecraftforge.fml.relauncher.SideOnly; //import net.minecraftforge.fml.relauncher.Side;
//import net.minecraftforge.fml.relauncher.SideOnly;
public class CreativeTab extends CreativeTabs { //
//public class CreativeTab extends CreativeTabs {
public static final CreativeTab INSTANCE = new CreativeTab(); //
private NonNullList<ItemStack> list; // public static final CreativeTab INSTANCE = new CreativeTab();
// private NonNullList<ItemStack> list;
public CreativeTab() { //
super(ActuallyAdditions.MODID); // public CreativeTab() {
this.setBackgroundImageName(ActuallyAdditions.MODID + ".png"); // super(ActuallyAdditions.MODID);
} // this.setBackgroundImageName(ActuallyAdditions.MODID + ".png");
// }
@Override //
public boolean hasSearchBar() { // @Override
return true; // public boolean hasSearchBar() {
} // return true;
// }
@Override //
public int getSearchbarWidth() { // @Override
return 70; // public int getSearchbarWidth() {
} // return 70;
// }
@Override //
public ItemStack createIcon() { // @Override
return new ItemStack(InitItems.itemBooklet); // public ItemStack createIcon() {
} // return new ItemStack(InitItems.itemBooklet);
// }
@Override //
@SideOnly(Side.CLIENT) // @Override
public void displayAllRelevantItems(NonNullList<ItemStack> list) { // @SideOnly(Side.CLIENT)
this.list = list; // public void displayAllRelevantItems(NonNullList<ItemStack> list) {
// this.list = list;
this.add(InitItems.itemBooklet); //
this.add(InitBlocks.blockSmileyCloud); // this.add(InitItems.itemBooklet);
this.add(InitBlocks.blockTinyTorch); // this.add(InitBlocks.blockSmileyCloud);
// this.add(InitBlocks.blockTinyTorch);
this.add(InitBlocks.blockFireworkBox); //
this.add(InitBlocks.blockLaserRelay); // this.add(InitBlocks.blockFireworkBox);
this.add(InitBlocks.blockLaserRelayAdvanced); // this.add(InitBlocks.blockLaserRelay);
this.add(InitBlocks.blockLaserRelayExtreme); // this.add(InitBlocks.blockLaserRelayAdvanced);
this.add(InitBlocks.blockLaserRelayFluids); // this.add(InitBlocks.blockLaserRelayExtreme);
this.add(InitBlocks.blockLaserRelayItem); // this.add(InitBlocks.blockLaserRelayFluids);
this.add(InitBlocks.blockLaserRelayItemWhitelist); // this.add(InitBlocks.blockLaserRelayItem);
this.add(InitBlocks.blockItemViewer); // this.add(InitBlocks.blockLaserRelayItemWhitelist);
this.add(InitBlocks.blockItemViewerHopping); // this.add(InitBlocks.blockItemViewer);
this.add(InitBlocks.blockAtomicReconstructor); // this.add(InitBlocks.blockItemViewerHopping);
this.add(InitBlocks.blockEmpowerer); // this.add(InitBlocks.blockAtomicReconstructor);
this.add(InitBlocks.blockPhantomface); // this.add(InitBlocks.blockEmpowerer);
this.add(InitBlocks.blockPhantomEnergyface); // this.add(InitBlocks.blockPhantomface);
this.add(InitBlocks.blockPhantomLiquiface); // this.add(InitBlocks.blockPhantomEnergyface);
this.add(InitBlocks.blockPhantomRedstoneface); // this.add(InitBlocks.blockPhantomLiquiface);
this.add(InitBlocks.blockPhantomPlacer); // this.add(InitBlocks.blockPhantomRedstoneface);
this.add(InitBlocks.blockPhantomBreaker); // this.add(InitBlocks.blockPhantomPlacer);
this.add(InitBlocks.blockPlayerInterface); // this.add(InitBlocks.blockPhantomBreaker);
this.add(InitBlocks.blockInputter); // this.add(InitBlocks.blockPlayerInterface);
this.add(InitBlocks.blockInputterAdvanced); // this.add(InitBlocks.blockInputter);
this.add(InitBlocks.blockPhantomBooster); // this.add(InitBlocks.blockInputterAdvanced);
this.add(InitBlocks.blockCoffeeMachine); // this.add(InitBlocks.blockPhantomBooster);
this.add(InitBlocks.blockXPSolidifier); // this.add(InitBlocks.blockCoffeeMachine);
this.add(InitBlocks.blockDisplayStand); // this.add(InitBlocks.blockXPSolidifier);
// this.add(InitBlocks.blockDisplayStand);
this.add(InitBlocks.blockFarmer); //
this.add(InitBlocks.blockShockSuppressor); // this.add(InitBlocks.blockFarmer);
this.add(InitBlocks.blockMiner); // this.add(InitBlocks.blockShockSuppressor);
this.add(InitBlocks.blockGreenhouseGlass); // this.add(InitBlocks.blockMiner);
this.add(InitBlocks.blockGrinder); // this.add(InitBlocks.blockGreenhouseGlass);
this.add(InitBlocks.blockGrinderDouble); // this.add(InitBlocks.blockGrinder);
this.add(InitBlocks.blockFurnaceDouble); // this.add(InitBlocks.blockGrinderDouble);
this.add(InitBlocks.blockLavaFactoryController); // this.add(InitBlocks.blockFurnaceDouble);
// this.add(InitBlocks.blockLavaFactoryController);
this.add(InitBlocks.blockEnergizer); //
this.add(InitBlocks.blockEnervator); // this.add(InitBlocks.blockEnergizer);
// this.add(InitBlocks.blockEnervator);
this.add(InitBlocks.blockFurnaceSolar); //
this.add(InitBlocks.blockHeatCollector); // this.add(InitBlocks.blockFurnaceSolar);
this.add(InitBlocks.blockCoalGenerator); // this.add(InitBlocks.blockHeatCollector);
this.add(InitBlocks.blockOilGenerator); // this.add(InitBlocks.blockCoalGenerator);
this.add(InitBlocks.blockLeafGenerator); // this.add(InitBlocks.blockOilGenerator);
this.add(InitBlocks.blockBioReactor); // this.add(InitBlocks.blockLeafGenerator);
// this.add(InitBlocks.blockBioReactor);
this.add(InitBlocks.blockItemRepairer); //
this.add(InitBlocks.blockFishingNet); // this.add(InitBlocks.blockItemRepairer);
this.add(InitBlocks.blockBreaker); // this.add(InitBlocks.blockFishingNet);
this.add(InitBlocks.blockDirectionalBreaker); // this.add(InitBlocks.blockBreaker);
this.add(InitBlocks.blockRangedCollector); // this.add(InitBlocks.blockDirectionalBreaker);
this.add(InitBlocks.blockPlacer); // this.add(InitBlocks.blockRangedCollector);
this.add(InitBlocks.blockDropper); // this.add(InitBlocks.blockPlacer);
this.add(InitBlocks.blockFluidPlacer); // this.add(InitBlocks.blockDropper);
this.add(InitBlocks.blockFluidCollector); // this.add(InitBlocks.blockFluidPlacer);
this.add(InitBlocks.blockBatteryBox); // this.add(InitBlocks.blockFluidCollector);
// this.add(InitBlocks.blockBatteryBox);
this.add(InitBlocks.blockMisc); //
this.add(InitBlocks.blockFeeder); // this.add(InitBlocks.blockMisc);
this.add(InitBlocks.blockCompost); // this.add(InitBlocks.blockFeeder);
this.add(InitBlocks.blockGiantChest); // this.add(InitBlocks.blockCompost);
this.add(InitBlocks.blockGiantChestMedium); // this.add(InitBlocks.blockGiantChest);
this.add(InitBlocks.blockGiantChestLarge); // this.add(InitBlocks.blockGiantChestMedium);
this.add(InitBlocks.blockCanolaPress); // this.add(InitBlocks.blockGiantChestLarge);
this.add(InitBlocks.blockFermentingBarrel); // this.add(InitBlocks.blockCanolaPress);
// this.add(InitBlocks.blockFermentingBarrel);
this.add(InitBlocks.blockTestifiBucksGreenWall); //
this.add(InitBlocks.blockTestifiBucksWhiteWall); // this.add(InitBlocks.blockTestifiBucksGreenWall);
this.add(InitBlocks.blockTestifiBucksGreenStairs); // this.add(InitBlocks.blockTestifiBucksWhiteWall);
this.add(InitBlocks.blockTestifiBucksWhiteStairs); // this.add(InitBlocks.blockTestifiBucksGreenStairs);
this.add(InitBlocks.blockTestifiBucksGreenSlab); // this.add(InitBlocks.blockTestifiBucksWhiteStairs);
this.add(InitBlocks.blockTestifiBucksWhiteSlab); // this.add(InitBlocks.blockTestifiBucksGreenSlab);
this.add(InitBlocks.blockTestifiBucksGreenFence); // this.add(InitBlocks.blockTestifiBucksWhiteSlab);
this.add(InitBlocks.blockTestifiBucksWhiteFence); // this.add(InitBlocks.blockTestifiBucksGreenFence);
// this.add(InitBlocks.blockTestifiBucksWhiteFence);
this.add(InitBlocks.blockQuartzWall); //
this.add(InitBlocks.blockQuartzStair); // this.add(InitBlocks.blockQuartzWall);
this.add(InitBlocks.blockQuartzSlab); // this.add(InitBlocks.blockQuartzStair);
this.add(InitBlocks.blockChiseledQuartzWall); // this.add(InitBlocks.blockQuartzSlab);
this.add(InitBlocks.blockChiseledQuartzStair); // this.add(InitBlocks.blockChiseledQuartzWall);
this.add(InitBlocks.blockChiseledQuartzSlab); // this.add(InitBlocks.blockChiseledQuartzStair);
this.add(InitBlocks.blockPillarQuartzWall); // this.add(InitBlocks.blockChiseledQuartzSlab);
this.add(InitBlocks.blockPillarQuartzStair); // this.add(InitBlocks.blockPillarQuartzWall);
this.add(InitBlocks.blockPillarQuartzSlab); // this.add(InitBlocks.blockPillarQuartzStair);
// this.add(InitBlocks.blockPillarQuartzSlab);
this.add(InitBlocks.blockColoredLamp); //
this.add(InitBlocks.blockColoredLampOn); // this.add(InitBlocks.blockColoredLamp);
this.add(InitBlocks.blockLampPowerer); // this.add(InitBlocks.blockColoredLampOn);
this.add(InitBlocks.blockTreasureChest); // this.add(InitBlocks.blockLampPowerer);
// this.add(InitBlocks.blockTreasureChest);
this.add(InitBlocks.blockBlackLotus); //
// this.add(InitBlocks.blockBlackLotus);
this.add(InitItems.itemBag); //
this.add(InitItems.itemVoidBag); // this.add(InitItems.itemBag);
// this.add(InitItems.itemVoidBag);
this.add(InitItems.itemWorm); //
this.add(InitItems.itemPlayerProbe); // this.add(InitItems.itemWorm);
this.add(InitItems.itemColorLens); // this.add(InitItems.itemPlayerProbe);
this.add(InitItems.itemExplosionLens); // this.add(InitItems.itemColorLens);
this.add(InitItems.itemDamageLens); // this.add(InitItems.itemExplosionLens);
this.add(InitItems.itemMoreDamageLens); // this.add(InitItems.itemDamageLens);
this.add(InitItems.itemDisenchantingLens); // this.add(InitItems.itemMoreDamageLens);
this.add(InitItems.itemMiningLens); // this.add(InitItems.itemDisenchantingLens);
this.add(InitItems.itemLaserWrench); // this.add(InitItems.itemMiningLens);
this.add(InitItems.itemLaserUpgradeInvisibility); // this.add(InitItems.itemLaserWrench);
this.add(InitItems.itemLaserUpgradeRange); // this.add(InitItems.itemLaserUpgradeInvisibility);
this.add(InitItems.itemEngineerGoggles); // this.add(InitItems.itemLaserUpgradeRange);
this.add(InitItems.itemEngineerGogglesAdvanced); // this.add(InitItems.itemEngineerGoggles);
this.add(InitItems.itemCrateKeeper); // this.add(InitItems.itemEngineerGogglesAdvanced);
this.add(InitItems.itemChestToCrateUpgrade); // this.add(InitItems.itemCrateKeeper);
this.add(InitItems.itemSmallToMediumCrateUpgrade); // this.add(InitItems.itemChestToCrateUpgrade);
this.add(InitItems.itemMediumToLargeCrateUpgrade); // this.add(InitItems.itemSmallToMediumCrateUpgrade);
this.add(InitItems.itemSpawnerChanger); // this.add(InitItems.itemMediumToLargeCrateUpgrade);
this.add(InitItems.itemWaterBowl); // this.add(InitItems.itemSpawnerChanger);
// this.add(InitItems.itemWaterBowl);
this.add(InitItems.itemDrill); //
this.add(InitItems.itemDrillUpgradeSpeed); // this.add(InitItems.itemDrill);
this.add(InitItems.itemDrillUpgradeSpeedII); // this.add(InitItems.itemDrillUpgradeSpeed);
this.add(InitItems.itemDrillUpgradeSpeedIII); // this.add(InitItems.itemDrillUpgradeSpeedII);
this.add(InitItems.itemDrillUpgradeSilkTouch); // this.add(InitItems.itemDrillUpgradeSpeedIII);
this.add(InitItems.itemDrillUpgradeFortune); // this.add(InitItems.itemDrillUpgradeSilkTouch);
this.add(InitItems.itemDrillUpgradeFortuneII); // this.add(InitItems.itemDrillUpgradeFortune);
this.add(InitItems.itemDrillUpgradeThreeByThree); // this.add(InitItems.itemDrillUpgradeFortuneII);
this.add(InitItems.itemDrillUpgradeFiveByFive); // this.add(InitItems.itemDrillUpgradeThreeByThree);
this.add(InitItems.itemDrillUpgradeBlockPlacing); // this.add(InitItems.itemDrillUpgradeFiveByFive);
this.add(InitItems.itemBattery); // this.add(InitItems.itemDrillUpgradeBlockPlacing);
this.add(InitItems.itemBatteryDouble); // this.add(InitItems.itemBattery);
this.add(InitItems.itemBatteryTriple); // this.add(InitItems.itemBatteryDouble);
this.add(InitItems.itemBatteryQuadruple); // this.add(InitItems.itemBatteryTriple);
this.add(InitItems.itemBatteryQuintuple); // this.add(InitItems.itemBatteryQuadruple);
this.add(InitItems.itemTeleStaff); // this.add(InitItems.itemBatteryQuintuple);
this.add(InitItems.itemFillingWand); // this.add(InitItems.itemTeleStaff);
// this.add(InitItems.itemFillingWand);
this.add(InitItems.itemGrowthRing); //
this.add(InitItems.itemMagnetRing); // this.add(InitItems.itemGrowthRing);
this.add(InitItems.itemWaterRemovalRing); // this.add(InitItems.itemMagnetRing);
// this.add(InitItems.itemWaterRemovalRing);
this.list.add(FluidUtil.getFilledBucket(new FluidStack(InitFluids.fluidCanolaOil, Fluid.BUCKET_VOLUME))); //
this.list.add(FluidUtil.getFilledBucket(new FluidStack(InitFluids.fluidRefinedCanolaOil, Fluid.BUCKET_VOLUME))); // this.list.add(FluidUtil.getFilledBucket(new FluidStack(InitFluids.fluidCanolaOil, Fluid.BUCKET_VOLUME)));
this.list.add(FluidUtil.getFilledBucket(new FluidStack(InitFluids.fluidCrystalOil, Fluid.BUCKET_VOLUME))); // this.list.add(FluidUtil.getFilledBucket(new FluidStack(InitFluids.fluidRefinedCanolaOil, Fluid.BUCKET_VOLUME)));
this.list.add(FluidUtil.getFilledBucket(new FluidStack(InitFluids.fluidEmpoweredOil, Fluid.BUCKET_VOLUME))); // this.list.add(FluidUtil.getFilledBucket(new FluidStack(InitFluids.fluidCrystalOil, Fluid.BUCKET_VOLUME)));
// this.list.add(FluidUtil.getFilledBucket(new FluidStack(InitFluids.fluidEmpoweredOil, Fluid.BUCKET_VOLUME)));
this.add(InitItems.itemPhantomConnector); //
this.add(InitItems.itemFilter); // this.add(InitItems.itemPhantomConnector);
this.add(InitItems.itemWingsOfTheBats); // this.add(InitItems.itemFilter);
// this.add(InitItems.itemWingsOfTheBats);
this.add(InitItems.itemCoffeeSeed); //
this.add(InitItems.itemCoffeeBean); // this.add(InitItems.itemCoffeeSeed);
this.add(InitItems.itemRiceSeed); // this.add(InitItems.itemCoffeeBean);
this.add(InitItems.itemCanolaSeed); // this.add(InitItems.itemRiceSeed);
this.add(InitItems.itemFlaxSeed); // this.add(InitItems.itemCanolaSeed);
this.add(InitItems.itemHairyBall); // this.add(InitItems.itemFlaxSeed);
this.add(InitItems.itemMisc); // this.add(InitItems.itemHairyBall);
this.add(InitItems.itemResonantRice); // this.add(InitItems.itemMisc);
this.add(InitItems.itemFertilizer); // this.add(InitItems.itemResonantRice);
// this.add(InitItems.itemFertilizer);
this.add(InitItems.itemCoffee); //
this.add(InitItems.itemFoods); // this.add(InitItems.itemCoffee);
this.add(InitItems.itemKnife); // this.add(InitItems.itemFoods);
this.add(InitItems.itemCrafterOnAStick); // this.add(InitItems.itemKnife);
this.add(InitItems.itemDust); // this.add(InitItems.itemCrafterOnAStick);
this.add(InitItems.itemSolidifiedExperience); // this.add(InitItems.itemDust);
this.add(InitItems.itemLeafBlower); // this.add(InitItems.itemSolidifiedExperience);
this.add(InitItems.itemLeafBlowerAdvanced); // this.add(InitItems.itemLeafBlower);
// this.add(InitItems.itemLeafBlowerAdvanced);
this.add(InitItems.woodenPaxel); //
this.add(InitItems.stonePaxel); // this.add(InitItems.woodenPaxel);
this.add(InitItems.ironPaxel); // this.add(InitItems.stonePaxel);
this.add(InitItems.goldPaxel); // this.add(InitItems.ironPaxel);
this.add(InitItems.diamondPaxel); // this.add(InitItems.goldPaxel);
this.add(InitItems.emeraldPaxel); // this.add(InitItems.diamondPaxel);
this.add(InitItems.obsidianPaxel); // this.add(InitItems.emeraldPaxel);
this.add(InitItems.quartzPaxel); // this.add(InitItems.obsidianPaxel);
this.add(InitItems.itemPaxelCrystalRed); // this.add(InitItems.quartzPaxel);
this.add(InitItems.itemPaxelCrystalBlue); // this.add(InitItems.itemPaxelCrystalRed);
this.add(InitItems.itemPaxelCrystalLightBlue); // this.add(InitItems.itemPaxelCrystalBlue);
this.add(InitItems.itemPaxelCrystalBlack); // this.add(InitItems.itemPaxelCrystalLightBlue);
this.add(InitItems.itemPaxelCrystalGreen); // this.add(InitItems.itemPaxelCrystalBlack);
this.add(InitItems.itemPaxelCrystalWhite); // this.add(InitItems.itemPaxelCrystalGreen);
// this.add(InitItems.itemPaxelCrystalWhite);
this.add(InitBlocks.blockCrystalClusterRedstone); //
this.add(InitBlocks.blockCrystalClusterLapis); // this.add(InitBlocks.blockCrystalClusterRedstone);
this.add(InitBlocks.blockCrystalClusterDiamond); // this.add(InitBlocks.blockCrystalClusterLapis);
this.add(InitBlocks.blockCrystalClusterCoal); // this.add(InitBlocks.blockCrystalClusterDiamond);
this.add(InitBlocks.blockCrystalClusterEmerald); // this.add(InitBlocks.blockCrystalClusterCoal);
this.add(InitBlocks.blockCrystalClusterIron); // this.add(InitBlocks.blockCrystalClusterEmerald);
this.add(InitBlocks.blockCrystal); // this.add(InitBlocks.blockCrystalClusterIron);
this.add(InitBlocks.blockCrystalEmpowered); // this.add(InitBlocks.blockCrystal);
this.add(InitItems.itemCrystal); // this.add(InitBlocks.blockCrystalEmpowered);
this.add(InitItems.itemCrystalEmpowered); // this.add(InitItems.itemCrystal);
this.add(InitItems.itemCrystalShard); // this.add(InitItems.itemCrystalEmpowered);
// this.add(InitItems.itemCrystalShard);
this.add(InitItems.itemJams); //
// this.add(InitItems.itemJams);
this.add(InitItems.itemPotionRing); //
this.add(InitItems.itemPotionRingAdvanced); // this.add(InitItems.itemPotionRing);
// this.add(InitItems.itemPotionRingAdvanced);
this.add(InitItems.itemPickaxeQuartz); //
this.add(InitItems.itemSwordQuartz); // this.add(InitItems.itemPickaxeQuartz);
this.add(InitItems.itemAxeQuartz); // this.add(InitItems.itemSwordQuartz);
this.add(InitItems.itemShovelQuartz); // this.add(InitItems.itemAxeQuartz);
this.add(InitItems.itemHoeQuartz); // this.add(InitItems.itemShovelQuartz);
// this.add(InitItems.itemHoeQuartz);
this.add(InitItems.itemHelmQuartz); //
this.add(InitItems.itemChestQuartz); // this.add(InitItems.itemHelmQuartz);
this.add(InitItems.itemPantsQuartz); // this.add(InitItems.itemChestQuartz);
this.add(InitItems.itemBootsQuartz); // this.add(InitItems.itemPantsQuartz);
// this.add(InitItems.itemBootsQuartz);
this.add(InitItems.itemPickaxeEmerald); //
this.add(InitItems.itemSwordEmerald); // this.add(InitItems.itemPickaxeEmerald);
this.add(InitItems.itemAxeEmerald); // this.add(InitItems.itemSwordEmerald);
this.add(InitItems.itemShovelEmerald); // this.add(InitItems.itemAxeEmerald);
this.add(InitItems.itemHoeEmerald); // this.add(InitItems.itemShovelEmerald);
// this.add(InitItems.itemHoeEmerald);
this.add(InitItems.itemHelmEmerald); //
this.add(InitItems.itemChestEmerald); // this.add(InitItems.itemHelmEmerald);
this.add(InitItems.itemPantsEmerald); // this.add(InitItems.itemChestEmerald);
this.add(InitItems.itemBootsEmerald); // this.add(InitItems.itemPantsEmerald);
// this.add(InitItems.itemBootsEmerald);
this.add(InitItems.itemPickaxeObsidian); //
this.add(InitItems.itemSwordObsidian); // this.add(InitItems.itemPickaxeObsidian);
this.add(InitItems.itemAxeObsidian); // this.add(InitItems.itemSwordObsidian);
this.add(InitItems.itemShovelObsidian); // this.add(InitItems.itemAxeObsidian);
this.add(InitItems.itemHoeObsidian); // this.add(InitItems.itemShovelObsidian);
// this.add(InitItems.itemHoeObsidian);
this.add(InitItems.itemHelmObsidian); //
this.add(InitItems.itemChestObsidian); // this.add(InitItems.itemHelmObsidian);
this.add(InitItems.itemPantsObsidian); // this.add(InitItems.itemChestObsidian);
this.add(InitItems.itemBootsObsidian); // this.add(InitItems.itemPantsObsidian);
// this.add(InitItems.itemBootsObsidian);
this.add(InitItems.itemPickaxeCrystalRed); //
this.add(InitItems.itemAxeCrystalRed); // this.add(InitItems.itemPickaxeCrystalRed);
this.add(InitItems.itemShovelCrystalRed); // this.add(InitItems.itemAxeCrystalRed);
this.add(InitItems.itemSwordCrystalRed); // this.add(InitItems.itemShovelCrystalRed);
this.add(InitItems.itemHoeCrystalRed); // this.add(InitItems.itemSwordCrystalRed);
this.add(InitItems.itemHelmCrystalRed); // this.add(InitItems.itemHoeCrystalRed);
this.add(InitItems.itemChestCrystalRed); // this.add(InitItems.itemHelmCrystalRed);
this.add(InitItems.itemPantsCrystalRed); // this.add(InitItems.itemChestCrystalRed);
this.add(InitItems.itemBootsCrystalRed); // this.add(InitItems.itemPantsCrystalRed);
// this.add(InitItems.itemBootsCrystalRed);
this.add(InitItems.itemPickaxeCrystalBlue); //
this.add(InitItems.itemAxeCrystalBlue); // this.add(InitItems.itemPickaxeCrystalBlue);
this.add(InitItems.itemShovelCrystalBlue); // this.add(InitItems.itemAxeCrystalBlue);
this.add(InitItems.itemSwordCrystalBlue); // this.add(InitItems.itemShovelCrystalBlue);
this.add(InitItems.itemHoeCrystalBlue); // this.add(InitItems.itemSwordCrystalBlue);
this.add(InitItems.itemHelmCrystalBlue); // this.add(InitItems.itemHoeCrystalBlue);
this.add(InitItems.itemChestCrystalBlue); // this.add(InitItems.itemHelmCrystalBlue);
this.add(InitItems.itemPantsCrystalBlue); // this.add(InitItems.itemChestCrystalBlue);
this.add(InitItems.itemBootsCrystalBlue); // this.add(InitItems.itemPantsCrystalBlue);
// this.add(InitItems.itemBootsCrystalBlue);
this.add(InitItems.itemPickaxeCrystalLightBlue); //
this.add(InitItems.itemAxeCrystalLightBlue); // this.add(InitItems.itemPickaxeCrystalLightBlue);
this.add(InitItems.itemShovelCrystalLightBlue); // this.add(InitItems.itemAxeCrystalLightBlue);
this.add(InitItems.itemSwordCrystalLightBlue); // this.add(InitItems.itemShovelCrystalLightBlue);
this.add(InitItems.itemHoeCrystalLightBlue); // this.add(InitItems.itemSwordCrystalLightBlue);
this.add(InitItems.itemHelmCrystalLightBlue); // this.add(InitItems.itemHoeCrystalLightBlue);
this.add(InitItems.itemChestCrystalLightBlue); // this.add(InitItems.itemHelmCrystalLightBlue);
this.add(InitItems.itemPantsCrystalLightBlue); // this.add(InitItems.itemChestCrystalLightBlue);
this.add(InitItems.itemBootsCrystalLightBlue); // this.add(InitItems.itemPantsCrystalLightBlue);
// this.add(InitItems.itemBootsCrystalLightBlue);
this.add(InitItems.itemPickaxeCrystalBlack); //
this.add(InitItems.itemAxeCrystalBlack); // this.add(InitItems.itemPickaxeCrystalBlack);
this.add(InitItems.itemShovelCrystalBlack); // this.add(InitItems.itemAxeCrystalBlack);
this.add(InitItems.itemSwordCrystalBlack); // this.add(InitItems.itemShovelCrystalBlack);
this.add(InitItems.itemHoeCrystalBlack); // this.add(InitItems.itemSwordCrystalBlack);
this.add(InitItems.itemHelmCrystalBlack); // this.add(InitItems.itemHoeCrystalBlack);
this.add(InitItems.itemChestCrystalBlack); // this.add(InitItems.itemHelmCrystalBlack);
this.add(InitItems.itemPantsCrystalBlack); // this.add(InitItems.itemChestCrystalBlack);
this.add(InitItems.itemBootsCrystalBlack); // this.add(InitItems.itemPantsCrystalBlack);
// this.add(InitItems.itemBootsCrystalBlack);
this.add(InitItems.itemPickaxeCrystalGreen); //
this.add(InitItems.itemAxeCrystalGreen); // this.add(InitItems.itemPickaxeCrystalGreen);
this.add(InitItems.itemShovelCrystalGreen); // this.add(InitItems.itemAxeCrystalGreen);
this.add(InitItems.itemSwordCrystalGreen); // this.add(InitItems.itemShovelCrystalGreen);
this.add(InitItems.itemHoeCrystalGreen); // this.add(InitItems.itemSwordCrystalGreen);
this.add(InitItems.itemHelmCrystalGreen); // this.add(InitItems.itemHoeCrystalGreen);
this.add(InitItems.itemChestCrystalGreen); // this.add(InitItems.itemHelmCrystalGreen);
this.add(InitItems.itemPantsCrystalGreen); // this.add(InitItems.itemChestCrystalGreen);
this.add(InitItems.itemBootsCrystalGreen); // this.add(InitItems.itemPantsCrystalGreen);
// this.add(InitItems.itemBootsCrystalGreen);
this.add(InitItems.itemPickaxeCrystalWhite); //
this.add(InitItems.itemAxeCrystalWhite); // this.add(InitItems.itemPickaxeCrystalWhite);
this.add(InitItems.itemShovelCrystalWhite); // this.add(InitItems.itemAxeCrystalWhite);
this.add(InitItems.itemSwordCrystalWhite); // this.add(InitItems.itemShovelCrystalWhite);
this.add(InitItems.itemHoeCrystalWhite); // this.add(InitItems.itemSwordCrystalWhite);
this.add(InitItems.itemHelmCrystalWhite); // this.add(InitItems.itemHoeCrystalWhite);
this.add(InitItems.itemChestCrystalWhite); // this.add(InitItems.itemHelmCrystalWhite);
this.add(InitItems.itemPantsCrystalWhite); // this.add(InitItems.itemChestCrystalWhite);
this.add(InitItems.itemBootsCrystalWhite); // this.add(InitItems.itemPantsCrystalWhite);
} // this.add(InitItems.itemBootsCrystalWhite);
// }
public void add(Item item) { //
if (item != null && (!(item instanceof IDisableableItem) || item instanceof IDisableableItem && !((IDisableableItem) item).isDisabled())) { // public void add(Item item) {
item.getSubItems(INSTANCE, this.list); // if (item != null && (!(item instanceof IDisableableItem) || item instanceof IDisableableItem && !((IDisableableItem) item).isDisabled())) {
} // item.getSubItems(INSTANCE, this.list);
} // }
// }
public void add(Block block) { //
if (block != null) { // public void add(Block block) {
block.getSubBlocks(INSTANCE, this.list); // if (block != null) {
} // block.getSubBlocks(INSTANCE, this.list);
} // }
} // }
//}

View file

@ -20,12 +20,14 @@ import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword; import net.minecraft.item.ItemSword;
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockRayTraceResult;
import net.minecraft.util.math.RayTraceResult; import net.minecraft.util.math.RayTraceResult;
import net.minecraft.util.text.TextFormatting; import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.client.event.RenderGameOverlayEvent; import net.minecraftforge.client.event.RenderGameOverlayEvent;
@ -161,7 +163,7 @@ public class ClientEvents {
public void onGameOverlay(RenderGameOverlayEvent.Post event) { public void onGameOverlay(RenderGameOverlayEvent.Post event) {
if (event.getType() == RenderGameOverlayEvent.ElementType.ALL && Minecraft.getMinecraft().currentScreen == null) { if (event.getType() == RenderGameOverlayEvent.ElementType.ALL && Minecraft.getMinecraft().currentScreen == null) {
Minecraft minecraft = Minecraft.getMinecraft(); Minecraft minecraft = Minecraft.getMinecraft();
EntityPlayer player = minecraft.player; PlayerEntity player = minecraft.player;
RayTraceResult posHit = minecraft.objectMouseOver; RayTraceResult posHit = minecraft.objectMouseOver;
FontRenderer font = minecraft.fontRenderer; FontRenderer font = minecraft.fontRenderer;
ItemStack stack = player.getHeldItemMainhand(); ItemStack stack = player.getHeldItemMainhand();

View file

@ -27,13 +27,13 @@ public class ParticleBeam extends Particle {
this.color = color; this.color = color;
this.rotationTime = rotationTime; this.rotationTime = rotationTime;
this.size = size; this.size = size;
this.particleMaxAge = maxAge; this.maxAge = maxAge;
this.alpha = alpha; this.alpha = alpha;
} }
@Override @Override
public void renderParticle(BufferBuilder buffer, Entity entityIn, float partialTicks, float rotationX, float rotationZ, float rotationYZ, float rotationXY, float rotationXZ) { public void renderParticle(BufferBuilder buffer, Entity entityIn, float partialTicks, float rotationX, float rotationZ, float rotationYZ, float rotationXY, float rotationXZ) {
float ageRatio = (float) this.particleAge / (float) this.particleMaxAge; float ageRatio = (float) this.age / (float) this.maxAge;
float currAlpha = this.alpha - ageRatio * this.alpha; float currAlpha = this.alpha - ageRatio * this.alpha;
AssetUtil.renderLaser(this.posX + 0.5, this.posY + 0.5, this.posZ + 0.5, this.endX + 0.5, this.endY + 0.5, this.endZ + 0.5, this.rotationTime, currAlpha, this.size, this.color); AssetUtil.renderLaser(this.posX + 0.5, this.posY + 0.5, this.posZ + 0.5, this.endX + 0.5, this.endY + 0.5, this.endZ + 0.5, this.rotationTime, currAlpha, this.size, this.color);
} }

View file

@ -2,9 +2,9 @@ package de.ellpeck.actuallyadditions.mod.recipe;
import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI; import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI;
import de.ellpeck.actuallyadditions.mod.items.InitItems; import de.ellpeck.actuallyadditions.mod.items.InitItems;
import net.minecraft.init.Blocks; import net.minecraft.block.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
public final class HairyBallHandler { public final class HairyBallHandler {

View file

@ -3,8 +3,8 @@ package de.ellpeck.actuallyadditions.mod.recipe;
import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI; import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI;
import de.ellpeck.actuallyadditions.mod.items.InitItems; import de.ellpeck.actuallyadditions.mod.items.InitItems;
import de.ellpeck.actuallyadditions.mod.items.metalists.TheJams; import de.ellpeck.actuallyadditions.mod.items.metalists.TheJams;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
public final class TreasureChestHandler { public final class TreasureChestHandler {
@ -17,18 +17,18 @@ public final class TreasureChestHandler {
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.EMERALD), 3, 1, 1); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.EMERALD), 3, 1, 1);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.EXPERIENCE_BOTTLE), 5, 3, 6); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.EXPERIENCE_BOTTLE), 5, 3, 6);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(InitItems.itemSolidifiedExperience), 15, 3, 6); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(InitItems.itemSolidifiedExperience), 15, 3, 6);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.RECORD_11), 1, 1, 1); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.MUSIC_DISC_11), 1, 1, 1);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.RECORD_13), 1, 1, 1); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.MUSIC_DISC_13), 1, 1, 1);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.RECORD_BLOCKS), 1, 1, 1); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.MUSIC_DISC_BLOCKS), 1, 1, 1);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.RECORD_CAT), 1, 1, 1); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.MUSIC_DISC_CAT), 1, 1, 1);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.RECORD_CHIRP), 1, 1, 1); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.MUSIC_DISC_CHIRP), 1, 1, 1);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.RECORD_FAR), 1, 1, 1); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.MUSIC_DISC_FAR), 1, 1, 1);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.RECORD_MALL), 1, 1, 1); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.MUSIC_DISC_MALL), 1, 1, 1);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.RECORD_MELLOHI), 1, 1, 1); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.MUSIC_DISC_MELLOHI), 1, 1, 1);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.RECORD_STAL), 1, 1, 1); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.MUSIC_DISC_STAL), 1, 1, 1);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.RECORD_STRAD), 1, 1, 1); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.MUSIC_DISC_STRAD), 1, 1, 1);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.RECORD_WARD), 1, 1, 1); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.MUSIC_DISC_WARD), 1, 1, 1);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.RECORD_WAIT), 1, 1, 1); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.MUSIC_DISC_WAIT), 1, 1, 1);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.SADDLE), 5, 1, 1); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.SADDLE), 5, 1, 1);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.NAME_TAG), 20, 1, 2); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(Items.NAME_TAG), 20, 1, 2);
ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(InitItems.itemJams, 1, TheJams.CU_BA_RA.ordinal()), 10, 1, 2); ActuallyAdditionsAPI.addTreasureChestLoot(new ItemStack(InitItems.itemJams, 1, TheJams.CU_BA_RA.ordinal()), 10, 1, 2);