Fix compile/model errors
This commit is contained in:
parent
78093631c5
commit
e845332846
|
@ -65,7 +65,7 @@ public class ItemSigilToggleable extends ItemSigil implements IActivatable
|
|||
@Override
|
||||
public EnumActionResult onItemUse(EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ)
|
||||
{
|
||||
return (NetworkHelper.getSoulNetwork(getOwnerUUID(stack)).syphonAndDamage(player, getLpUsed()) && onSigilUse(player.getHeldItem(hand), player, world, pos, side, hitX, hitY, hitZ)) ? EnumActionResult.SUCCESS : EnumActionResult.FAIL;
|
||||
return (NetworkHelper.getSoulNetwork(getOwnerUUID(player.getHeldItem(hand))).syphonAndDamage(player, getLpUsed()) && onSigilUse(player.getHeldItem(hand), player, world, pos, side, hitX, hitY, hitZ)) ? EnumActionResult.SUCCESS : EnumActionResult.FAIL;
|
||||
}
|
||||
|
||||
public boolean onSigilUse(ItemStack itemStack, EntityPlayer player, World world, BlockPos blockPos, EnumFacing side, float hitX, float hitY, float hitZ)
|
||||
|
|
|
@ -99,7 +99,7 @@ public class ItemPotionFlask extends Item implements IMeshProvider
|
|||
return EnumActionResult.SUCCESS;
|
||||
}
|
||||
|
||||
return super.onItemUse(stack, player, world, pos, hand, facing, hitX, hitY, hitZ);
|
||||
return super.onItemUse(player, world, pos, hand, facing, hitX, hitY, hitZ);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -8,6 +8,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
|||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.NonNullList;
|
||||
import net.minecraftforge.fluids.capability.IFluidHandler;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
@ -45,7 +46,7 @@ public class ItemFluidRouterFilter extends Item implements IFluidFilterProvider,
|
|||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void getSubItems(Item id, CreativeTabs creativeTab, List<ItemStack> list)
|
||||
public void getSubItems(Item id, CreativeTabs creativeTab, NonNullList<ItemStack> list)
|
||||
{
|
||||
for (int i = 0; i < names.length; i++)
|
||||
list.add(new ItemStack(id, 1, i));
|
||||
|
@ -63,7 +64,7 @@ public class ItemFluidRouterFilter extends Item implements IFluidFilterProvider,
|
|||
@Override
|
||||
public IFluidFilter getInputFluidFilter(ItemStack filterStack, TileEntity tile, IFluidHandler handler)
|
||||
{
|
||||
IFluidFilter testFilter = new RoutingFluidFilter();
|
||||
IFluidFilter testFilter;
|
||||
|
||||
switch (filterStack.getMetadata())
|
||||
{
|
||||
|
@ -120,9 +121,9 @@ public class ItemFluidRouterFilter extends Item implements IFluidFilterProvider,
|
|||
}
|
||||
|
||||
ItemStack ghostStack = GhostItemHelper.getStackFromGhost(stack);
|
||||
if (ghostStack.stackSize == 0)
|
||||
if (ghostStack.isEmpty())
|
||||
{
|
||||
ghostStack.stackSize = Integer.MAX_VALUE;
|
||||
ghostStack.setCount(Integer.MAX_VALUE);
|
||||
}
|
||||
|
||||
filteredList.add(ghostStack);
|
||||
|
@ -145,7 +146,7 @@ public class ItemFluidRouterFilter extends Item implements IFluidFilterProvider,
|
|||
{
|
||||
ItemStack copyStack = keyStack.copy();
|
||||
GhostItemHelper.setItemGhostAmount(copyStack, 0);
|
||||
copyStack.stackSize = 1;
|
||||
copyStack.setCount(1);
|
||||
return copyStack;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -171,7 +171,7 @@ public class ItemRouterFilter extends Item implements IItemFilterProvider, IVari
|
|||
{
|
||||
ItemStack copyStack = keyStack.copy();
|
||||
GhostItemHelper.setItemGhostAmount(copyStack, 0);
|
||||
copyStack.stackSize = 1;
|
||||
copyStack.setCount(1);
|
||||
return copyStack;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ public class RoutingFluidFilter implements IFluidFilter
|
|||
public static FluidStack getFluidStackFromItemStack(ItemStack inputStack)
|
||||
{
|
||||
FluidStack fluidStack = FluidUtil.getFluidContained(inputStack);
|
||||
fluidStack.amount = inputStack.stackSize;
|
||||
fluidStack.amount = inputStack.getCount();
|
||||
return fluidStack;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ package WayofTime.bloodmagic.tile.container;
|
|||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import WayofTime.bloodmagic.util.GhostItemHelper;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.ClickType;
|
||||
|
@ -85,10 +86,10 @@ public class ContainerItemRoutingNode extends Container
|
|||
if (dragType == 0) //Left mouse click-eth
|
||||
{
|
||||
{
|
||||
if (heldStack == null && slotStack != null)
|
||||
if (heldStack.isEmpty() && !slotStack.isEmpty())
|
||||
{
|
||||
//I clicked on the slot with an empty hand. Selecting!
|
||||
} else if (heldStack != null && slotStack == null)
|
||||
} else if (!heldStack.isEmpty() && slotStack.isEmpty())
|
||||
{
|
||||
if (!((SlotGhostItem) slot).canBeAccessed())
|
||||
{
|
||||
|
@ -103,15 +104,15 @@ public class ContainerItemRoutingNode extends Container
|
|||
ItemStack filterStack = this.inventorySlots.get(0).getStack();
|
||||
if (filterStack.getItem() instanceof IRoutingFilterProvider)
|
||||
{
|
||||
ItemStack copyStack = ((IRoutingFilterProvider) filterStack.getItem()).getContainedStackForItem(filterStack, heldStack);
|
||||
slot.putStack(copyStack);
|
||||
ItemStack filterCopy = ((IRoutingFilterProvider) filterStack.getItem()).getContainedStackForItem(filterStack, heldStack);
|
||||
slot.putStack(filterCopy);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else
|
||||
//Right mouse click-eth away
|
||||
{
|
||||
slot.putStack(null);
|
||||
slot.putStack(ItemStack.EMPTY);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ public class TileInputRoutingNode extends TileFilteredRoutingNode implements IIn
|
|||
@Override
|
||||
public IFluidFilter getInputFluidFilterForSide(EnumFacing side)
|
||||
{
|
||||
TileEntity tile = worldObj.getTileEntity(pos.offset(side));
|
||||
TileEntity tile = getWorld().getTileEntity(pos.offset(side));
|
||||
if (tile != null && tile.hasCapability(CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY, side))
|
||||
{
|
||||
IFluidHandler handler = tile.getCapability(CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY, side);
|
||||
|
|
|
@ -66,7 +66,7 @@ public class TileOutputRoutingNode extends TileFilteredRoutingNode implements IO
|
|||
@Override
|
||||
public IFluidFilter getOutputFluidFilterForSide(EnumFacing side)
|
||||
{
|
||||
TileEntity tile = worldObj.getTileEntity(pos.offset(side));
|
||||
TileEntity tile = getWorld().getTileEntity(pos.offset(side));
|
||||
if (tile != null && tile.hasCapability(CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY, side))
|
||||
{
|
||||
IFluidHandler handler = tile.getCapability(CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY, side);
|
||||
|
|
|
@ -5,13 +5,18 @@
|
|||
"transform": "forge:default-item"
|
||||
},
|
||||
"variants": {
|
||||
"type": {
|
||||
"normal": {
|
||||
"full": {
|
||||
"true": {
|
||||
"textures": {
|
||||
"layer0": "bloodmagic:items/PotionFlask_underlay",
|
||||
"layer1": "bloodmagic:items/PotionFlask_outline",
|
||||
"layer2": "bloodmagic:items/PotionFlask_overlay"
|
||||
}
|
||||
},
|
||||
"false": {
|
||||
"textures": {
|
||||
"layer0": "bloodmagic:items/PotionFlask_outline"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 681 B After Width: | Height: | Size: 681 B |
Loading…
Reference in a new issue