1.12 port
This commit is contained in:
Родитель
15df5fc5e0
Коммит
f8f2a8edef
|
@ -91,7 +91,7 @@ public void parseRuleData(NBTTagCompound tag)
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldPlaceOnBuildPass(World world, int turns, int x, int y, int z, int buildPass)
|
||||
public boolean shouldPlaceOnBuildPass(World world, int turns, BlockPos pos, int buildPass)
|
||||
{
|
||||
return buildPass==3;
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List)
|
|||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4)
|
||||
public void addInformation(ItemStack stack, @Nullable World world, List<String> tooltip, ITooltipFlag flag)
|
||||
{
|
||||
if(tooltips.containsKey(stack.getItemDamage()))
|
||||
{
|
||||
|
|
|
@ -74,7 +74,7 @@ public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List)
|
|||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4)
|
||||
public void addInformation(ItemStack stack, @Nullable World world, List<String> tooltip, ITooltipFlag flag)
|
||||
{
|
||||
if(stack!=null)
|
||||
{
|
||||
|
|
|
@ -95,7 +95,7 @@ public boolean onUsedFinalLeft(World world, EntityPlayer player, ItemStack stack
|
|||
|
||||
ItemStructureSettings viewSettings = new ItemStructureSettings();
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4)
|
||||
public void addInformation(ItemStack stack, @Nullable World world, List<String> tooltip, ITooltipFlag flag)
|
||||
{
|
||||
String structure = "none";
|
||||
ItemStructureSettings.getSettingsFor(stack, viewSettings);
|
||||
|
|
|
@ -87,7 +87,7 @@ public boolean onUsedFinalLeft(World world, EntityPlayer player, ItemStack stack
|
|||
}
|
||||
|
||||
@Override
|
||||
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean par4)
|
||||
public void addInformation(ItemStack stack, @Nullable World world, List<String> tooltip, ITooltipFlag flag)
|
||||
{
|
||||
if(stack.hasTagCompound() && stack.getTagCompound().hasKey("spawnData"))
|
||||
{
|
||||
|
|
|
@ -27,9 +27,9 @@ import shadowmage.ancient_structures.common.manager.BlockDataManager;
|
|||
public class TemplateRuleBlockDoors extends TemplateRuleVanillaBlocks
|
||||
{
|
||||
|
||||
public TemplateRuleBlockDoors(World world, int x, int y, int z, Block block, int meta, int turns)
|
||||
public TemplateRuleBlockDoors(World world, BlockPos pos, Block block, int meta, int turns)
|
||||
{
|
||||
super(world, x, y, z, block, meta, turns);
|
||||
super(world, pos, block, meta, turns);
|
||||
}
|
||||
|
||||
public TemplateRuleBlockDoors()
|
||||
|
|
|
@ -35,9 +35,9 @@ public class TemplateRuleBlockInventory extends TemplateRuleVanillaBlocks
|
|||
public int randomLootLevel = 0;
|
||||
public NBTTagCompound tag = new NBTTagCompound();
|
||||
|
||||
public TemplateRuleBlockInventory(World world, int x, int y, int z, Block block, int meta, int turns)
|
||||
public TemplateRuleBlockInventory(World world, BlockPos pos, Block block, int meta, int turns)
|
||||
{
|
||||
super(world, x, y, z, block, meta, turns);
|
||||
super(world, pos, block, meta, turns);
|
||||
TileEntity te = world.getBlockTileEntity(x, y, z);
|
||||
if(te instanceof IInventory)
|
||||
{
|
||||
|
|
|
@ -30,9 +30,9 @@ public class TemplateRuleBlockLogic extends TemplateRuleVanillaBlocks
|
|||
|
||||
public NBTTagCompound tag = new NBTTagCompound();
|
||||
|
||||
public TemplateRuleBlockLogic(World world, int x, int y, int z, Block block, int meta, int turns)
|
||||
public TemplateRuleBlockLogic(World world, BlockPos pos, Block block, int meta, int turns)
|
||||
{
|
||||
super(world, x, y, z, block, meta, turns);
|
||||
super(world, pos, block, meta, turns);
|
||||
TileEntity te = world.getBlockTileEntity(x, y, z);
|
||||
te.writeToNBT(tag);
|
||||
}
|
||||
|
|
|
@ -33,9 +33,9 @@ public class TemplateRuleBlockSign extends TemplateRuleVanillaBlocks
|
|||
public String signContents[];
|
||||
public boolean wall = true;
|
||||
|
||||
public TemplateRuleBlockSign(World world, int x, int y, int z, Block block, int meta, int turns)
|
||||
public TemplateRuleBlockSign(World world, BlockPos pos, Block block, int meta, int turns)
|
||||
{
|
||||
super(world, x, y, z, block, meta, turns);
|
||||
super(world, pos, block, meta, turns);
|
||||
TileEntitySign te = (TileEntitySign) world.getBlockTileEntity(x, y, z);
|
||||
signContents = new String[te.signText.length];
|
||||
for(int i = 0; i < signContents.length; i++)
|
||||
|
|
|
@ -36,9 +36,9 @@ public class TemplateRuleModBlocks extends TemplateRuleBlock
|
|||
public String blockName;
|
||||
public int meta;
|
||||
|
||||
public TemplateRuleModBlocks(World world, int x, int y, int z, Block block, int meta, int turns)
|
||||
public TemplateRuleModBlocks(World world, BlockPos pos, Block block, int meta, int turns)
|
||||
{
|
||||
super(world, x, y, z, block, meta, turns);
|
||||
super(world, pos, block, meta, turns);
|
||||
this.blockName = BlockDataManager.getBlockName(block);
|
||||
this.meta = meta;
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ public void addResources(List<ItemStack> resources)
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldPlaceOnBuildPass(World world, int turns, int x, int y, int z, int buildPass)
|
||||
public boolean shouldPlaceOnBuildPass(World world, int turns, BlockPos pos, int buildPass)
|
||||
{
|
||||
return buildPass==0;
|
||||
}
|
||||
|
|
|
@ -48,9 +48,9 @@ public int buildPass = 0;
|
|||
* @param block
|
||||
* @param meta
|
||||
*/
|
||||
public TemplateRuleVanillaBlocks(World world, int x, int y, int z, Block block, int meta, int turns)
|
||||
public TemplateRuleVanillaBlocks(World world, BlockPos pos, Block block, int meta, int turns)
|
||||
{
|
||||
super(world, x, y, z, block, meta, turns);
|
||||
super(world, pos, block, meta, turns);
|
||||
this.blockName = BlockDataManager.getBlockName(block);
|
||||
this.meta = BlockDataManager.getRotatedMeta(block, meta, turns);
|
||||
this.buildPass = BlockDataManager.getBlockPriority(block.blockID, meta);
|
||||
|
@ -87,7 +87,7 @@ public void addResources(List<ItemStack> resources)
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldPlaceOnBuildPass(World world, int turns, int x, int y, int z, int buildPass)
|
||||
public boolean shouldPlaceOnBuildPass(World world, int turns, BlockPos pos, int buildPass)
|
||||
{
|
||||
return buildPass == this.buildPass;
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ public void parseRuleData(NBTTagCompound tag)
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldPlaceOnBuildPass(World world, int turns, int x, int y, int z, int buildPass)
|
||||
public boolean shouldPlaceOnBuildPass(World world, int turns, BlockPos pos, int buildPass)
|
||||
{
|
||||
return buildPass==3;
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ import net.minecraft.world.World;
|
|||
public abstract class TemplateRuleBlock extends TemplateRule
|
||||
{
|
||||
|
||||
public TemplateRuleBlock(World world, int x, int y, int z, Block block, int meta, int turns)
|
||||
public TemplateRuleBlock(World world, BlockPos pos, Block block, int meta, int turns)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче