mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Update MCP mappings to 20170617
This commit is contained in:
1 parent
3d322ef925
commit
c2845967cc
27 files changed
+95
-88
No files matched your search
@@ -238,7 +238,7 @@ public class DynBucketTest
|
||||
@Override
|
||||
public void getSubItems(CreativeTabs tab, NonNullList<ItemStack> subItems)
|
||||
{
|
||||
if (!this.func_194125_a(tab))
|
||||
if (!this.isInCreativeTab(tab))
|
||||
return;
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
|
||||
@@ -94,15 +94,10 @@ public class FluidPlacementTest
|
||||
ModelLoader.setBucketModelDefinition(FluidContainer.instance);
|
||||
// no need to pass the locations here, since they'll be loaded by the block model logic.
|
||||
ModelBakery.registerItemVariants(fluid);
|
||||
ModelLoader.setCustomMeshDefinition(fluid, new ItemMeshDefinition()
|
||||
{
|
||||
public ModelResourceLocation getModelLocation(@Nonnull ItemStack stack)
|
||||
{
|
||||
return fluidLocation;
|
||||
}
|
||||
});
|
||||
ModelLoader.setCustomMeshDefinition(fluid, stack -> fluidLocation);
|
||||
ModelLoader.setCustomStateMapper(FiniteFluidBlock.instance, new StateMapperBase()
|
||||
{
|
||||
@Override
|
||||
protected ModelResourceLocation getModelResourceLocation(IBlockState state)
|
||||
{
|
||||
return fluidLocation;
|
||||
@@ -249,7 +244,7 @@ public class FluidPlacementTest
|
||||
@Override
|
||||
public void getSubItems(@Nullable CreativeTabs tab, @Nonnull NonNullList<ItemStack> subItems)
|
||||
{
|
||||
if (!this.func_194125_a(tab))
|
||||
if (!this.isInCreativeTab(tab))
|
||||
return;
|
||||
Fluid[] fluids = new Fluid[]{FluidRegistry.WATER, FluidRegistry.LAVA, FiniteFluid.instance, ModelFluidDebug.TestFluid.instance};
|
||||
// add 16 variable fillings
|
||||
|
||||
@@ -113,7 +113,7 @@ public class ItemTileDebug
|
||||
}
|
||||
|
||||
@Override
|
||||
public void func_192841_a(CustomTileEntity p_180535_1_, double x, double y, double z, float p_180535_8_, int p_180535_9_, float partial)
|
||||
public void render(CustomTileEntity p_180535_1_, double x, double y, double z, float p_180535_8_, int p_180535_9_, float partial)
|
||||
{
|
||||
glPushMatrix();
|
||||
glTranslated(x, y, z);
|
||||
|
||||
@@ -63,7 +63,7 @@ public class NBTShareTagItemTest
|
||||
@Override
|
||||
public void getSubItems(CreativeTabs tab, NonNullList<ItemStack> subItems)
|
||||
{
|
||||
if (!this.func_194125_a(tab))
|
||||
if (!this.isInCreativeTab(tab))
|
||||
return;
|
||||
ItemStack creativeMenuItem = new ItemStack(this);
|
||||
NBTTagCompound creativeMenuNBT = new NBTTagCompound();
|
||||
|
||||
Reference in new issue
Block a user