mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 03:25:18 +00:00
Update mappoings snapshot to 20160518
This commit is contained in:
1 parent
b9ac73b0f1
commit
cdc86e9af6
60 files changed
+514
-810
No files matched your search
@@ -90,8 +90,8 @@ public class DynBucketTest
|
||||
}
|
||||
});
|
||||
ModelBakery.registerItemVariants(dynBottle, bottle);
|
||||
ModelLoader.setCustomModelResourceLocation(Item.itemRegistry.getObject(simpleTankName), 0, new ModelResourceLocation(simpleTankName, "normal"));
|
||||
ModelLoader.setCustomModelResourceLocation(Item.itemRegistry.getObject(testItemName), 0, new ModelResourceLocation(new ResourceLocation("minecraft", "stick"), "inventory"));
|
||||
ModelLoader.setCustomModelResourceLocation(Item.REGISTRY.getObject(simpleTankName), 0, new ModelResourceLocation(simpleTankName, "normal"));
|
||||
ModelLoader.setCustomModelResourceLocation(Item.REGISTRY.getObject(testItemName), 0, new ModelResourceLocation(new ResourceLocation("minecraft", "stick"), "inventory"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ public class DynBucketTest
|
||||
//registerFluidContainer2(FluidRegistry.getFluid(TestGas.name), i++);
|
||||
|
||||
// Set TestFluidBlocks blockstate to use milk instead of testfluid for the texture to be loaded
|
||||
FluidContainerRegistry.registerFluidContainer(FluidRegistry.getFluid("milk"), new ItemStack(Items.milk_bucket), FluidContainerRegistry.EMPTY_BUCKET);
|
||||
FluidContainerRegistry.registerFluidContainer(FluidRegistry.getFluid("milk"), new ItemStack(Items.MILK_BUCKET), FluidContainerRegistry.EMPTY_BUCKET);
|
||||
|
||||
proxy.setupModels();
|
||||
//MinecraftForge.EVENT_BUS.register(this);
|
||||
@@ -139,7 +139,7 @@ public class DynBucketTest
|
||||
|
||||
FluidStack fs = new FluidStack(fluid, FluidContainerRegistry.BUCKET_VOLUME);
|
||||
ItemStack stack = new ItemStack(dynBucket, 1, meta);
|
||||
FluidContainerRegistry.registerFluidContainer(fs, stack, new ItemStack(Items.bucket));
|
||||
FluidContainerRegistry.registerFluidContainer(fs, stack, new ItemStack(Items.BUCKET));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@@ -150,7 +150,7 @@ public class DynBucketTest
|
||||
|
||||
FluidStack fs = new FluidStack(fluid, 250);
|
||||
ItemStack stack = new ItemStack(dynBottle, 1, meta);
|
||||
FluidContainerRegistry.registerFluidContainer(fs, stack, new ItemStack(Items.glass_bottle));
|
||||
FluidContainerRegistry.registerFluidContainer(fs, stack, new ItemStack(Items.GLASS_BOTTLE));
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
@@ -182,17 +182,17 @@ public class DynBucketTest
|
||||
ItemStackHandler handler2 = new ItemStackHandler(5);
|
||||
IItemHandler joined = new CombinedInvWrapper(handler, handler2);
|
||||
|
||||
handler.setStackInSlot(0, new ItemStack(Blocks.stone));
|
||||
handler.setStackInSlot(1, new ItemStack(Blocks.grass));
|
||||
handler.setStackInSlot(2, new ItemStack(Blocks.dirt));
|
||||
handler.setStackInSlot(3, new ItemStack(Blocks.glass));
|
||||
handler.setStackInSlot(4, new ItemStack(Blocks.sand));
|
||||
handler.setStackInSlot(0, new ItemStack(Blocks.STONE));
|
||||
handler.setStackInSlot(1, new ItemStack(Blocks.GRASS));
|
||||
handler.setStackInSlot(2, new ItemStack(Blocks.DIRT));
|
||||
handler.setStackInSlot(3, new ItemStack(Blocks.GLASS));
|
||||
handler.setStackInSlot(4, new ItemStack(Blocks.SAND));
|
||||
|
||||
handler2.setStackInSlot(0, new ItemStack(Blocks.slime_block));
|
||||
handler2.setStackInSlot(1, new ItemStack(Blocks.tnt));
|
||||
handler2.setStackInSlot(2, new ItemStack(Blocks.planks));
|
||||
handler2.setStackInSlot(3, new ItemStack(Blocks.log));
|
||||
handler2.setStackInSlot(4, new ItemStack(Blocks.diamond_block));
|
||||
handler2.setStackInSlot(0, new ItemStack(Blocks.SLIME_BLOCK));
|
||||
handler2.setStackInSlot(1, new ItemStack(Blocks.TNT));
|
||||
handler2.setStackInSlot(2, new ItemStack(Blocks.PLANKS));
|
||||
handler2.setStackInSlot(3, new ItemStack(Blocks.LOG));
|
||||
handler2.setStackInSlot(4, new ItemStack(Blocks.DIAMOND_BLOCK));
|
||||
|
||||
for (int i = 0; i < handler.getSlots(); i++) {
|
||||
System.out.println("Expected 1: " + handler.getStackInSlot(i));
|
||||
@@ -217,7 +217,7 @@ public class DynBucketTest
|
||||
setUnlocalizedName("dynbucket");
|
||||
setMaxStackSize(1);
|
||||
setHasSubtypes(true);
|
||||
setCreativeTab(CreativeTabs.tabMisc);
|
||||
setCreativeTab(CreativeTabs.MISC);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -236,12 +236,12 @@ public class DynBucketTest
|
||||
{
|
||||
public DynBottle()
|
||||
{
|
||||
super(250, new ItemStack(Items.glass_bottle), true);
|
||||
super(250, new ItemStack(Items.GLASS_BOTTLE), true);
|
||||
setUnlocalizedName("dynbottle");
|
||||
setRegistryName(new ResourceLocation(MODID, "dynbottle"));
|
||||
setMaxStackSize(16);
|
||||
setHasSubtypes(true);
|
||||
setCreativeTab(CreativeTabs.tabMisc);
|
||||
setCreativeTab(CreativeTabs.MISC);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -251,8 +251,8 @@ public class DynBucketTest
|
||||
|
||||
protected BlockSimpleTank()
|
||||
{
|
||||
super(Material.rock);
|
||||
setCreativeTab(CreativeTabs.tabMisc);
|
||||
super(Material.ROCK);
|
||||
setCreativeTab(CreativeTabs.MISC);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -369,17 +369,17 @@ public class DynBucketTest
|
||||
}
|
||||
|
||||
@Override
|
||||
public NBTTagCompound func_189515_b(NBTTagCompound tags)
|
||||
public NBTTagCompound writeToNBT(NBTTagCompound tags)
|
||||
{
|
||||
tags = super.func_189515_b(tags);
|
||||
tags = super.writeToNBT(tags);
|
||||
tank.writeToNBT(tags);
|
||||
return tags;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SPacketUpdateTileEntity func_189518_D_() {
|
||||
public SPacketUpdateTileEntity getUpdatePacket() {
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
func_189515_b(tag);
|
||||
tag = writeToNBT(tag);
|
||||
return new SPacketUpdateTileEntity(this.getPos(), this.getBlockMetadata(), tag);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ public class ForgeBlockStatesLoaderDebug {
|
||||
|
||||
//public static final Block blockCustom = new CustomMappedBlock();
|
||||
public static final String nameCustomWall = "custom_wall";
|
||||
public static final BlockWall blockCustomWall = new BlockWall(Blocks.cobblestone);
|
||||
public static final BlockWall blockCustomWall = new BlockWall(Blocks.COBBLESTONE);
|
||||
public static final ItemMultiTexture itemCustomWall = (ItemMultiTexture)new ItemMultiTexture(blockCustomWall, blockCustomWall, new Function<ItemStack, String>()
|
||||
{
|
||||
@Override
|
||||
|
||||
@@ -51,7 +51,7 @@ public class ItemLayerModelDebug
|
||||
|
||||
private TestItem()
|
||||
{
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(MODID + ":" + name);
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
|
||||
@@ -123,8 +123,8 @@ public class ItemTileDebug
|
||||
|
||||
private TestBlock()
|
||||
{
|
||||
super(Material.iron);
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
super(Material.IRON);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(MODID + ":" + name);
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ public class LootTablesDebug {
|
||||
LootPool main = event.getTable().getPool("main"); //Note: This CAN NPE if another mod removes things
|
||||
main.removeEntry("minecraft:wooden_axe");
|
||||
main.removeEntry("minecraft:stone_axe");
|
||||
main.addEntry(new LootEntryItem(Items.diamond_chestplate, 1, 0, new LootFunction[0], new LootCondition[0], MODID + ":diamond_chestplate"));
|
||||
main.addEntry(new LootEntryItem(Items.DIAMOND_CHESTPLATE, 1, 0, new LootFunction[0], new LootCondition[0], MODID + ":diamond_chestplate"));
|
||||
|
||||
// Get rid of all building mats. Which is pool #3, index starts at 0, but 0 is named "main"
|
||||
event.getTable().removePool("pool3");
|
||||
|
||||
@@ -77,10 +77,10 @@ public class ModelAnimationDebug
|
||||
{
|
||||
public void preInit(FMLPreInitializationEvent event)
|
||||
{
|
||||
GameRegistry.register(new Block(Material.wood)
|
||||
GameRegistry.register(new Block(Material.WOOD)
|
||||
{
|
||||
{
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(MODID + "." + blockName);
|
||||
setRegistryName(blockId);
|
||||
}
|
||||
@@ -152,7 +152,7 @@ public class ModelAnimationDebug
|
||||
return true;
|
||||
}
|
||||
});
|
||||
GameRegistry.register(new ItemBlock(Block.blockRegistry.getObject(blockId))
|
||||
GameRegistry.register(new ItemBlock(Block.REGISTRY.getObject(blockId))
|
||||
{
|
||||
@Override
|
||||
public ICapabilityProvider initCapabilities(ItemStack stack, NBTTagCompound nbt)
|
||||
@@ -181,7 +181,7 @@ public class ModelAnimationDebug
|
||||
{
|
||||
super.preInit(event);
|
||||
B3DLoader.INSTANCE.addDomain(MODID);
|
||||
ModelLoader.setCustomModelResourceLocation(Item.itemRegistry.getObject(blockId), 0, new ModelResourceLocation(blockId, "inventory"));
|
||||
ModelLoader.setCustomModelResourceLocation(Item.REGISTRY.getObject(blockId), 0, new ModelResourceLocation(blockId, "inventory"));
|
||||
ClientRegistry.bindTileEntitySpecialRenderer(Chest.class, new AnimationTESR<Chest>()
|
||||
{
|
||||
@Override
|
||||
@@ -219,7 +219,7 @@ public class ModelAnimationDebug
|
||||
{
|
||||
protected ResourceLocation getEntityTexture(EntityChest entity)
|
||||
{
|
||||
return TextureMap.locationBlocksTexture;
|
||||
return TextureMap.LOCATION_BLOCKS_TEXTURE;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -132,8 +132,8 @@ public class ModelBakeEventDebug
|
||||
|
||||
private CustomModelBlock()
|
||||
{
|
||||
super(Material.iron);
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
super(Material.IRON);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(MODID + ":" + name);
|
||||
setRegistryName(blockName);
|
||||
}
|
||||
|
||||
@@ -158,8 +158,8 @@ public class ModelFluidDebug
|
||||
|
||||
private TestFluidBlock()
|
||||
{
|
||||
super(TestFluid.instance, Material.water);
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
super(TestFluid.instance, Material.WATER);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(MODID + ":" + name);
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
@@ -172,8 +172,8 @@ public class ModelFluidDebug
|
||||
|
||||
private MilkFluidBlock()
|
||||
{
|
||||
super(milkFluid, Material.water);
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
super(milkFluid, Material.WATER);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(MODID + ":" + name);
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
@@ -186,8 +186,8 @@ public class ModelFluidDebug
|
||||
|
||||
private TestGasBlock()
|
||||
{
|
||||
super(TestGas.instance, Material.lava);
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
super(TestGas.instance, Material.LAVA);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(MODID + ":" + name);
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
|
||||
@@ -124,9 +124,9 @@ public class ModelLoaderRegistryDebug
|
||||
|
||||
private CustomModelBlock()
|
||||
{
|
||||
super(Material.iron);
|
||||
super(Material.IRON);
|
||||
this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(MODID + ":" + name);
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
@@ -225,8 +225,8 @@ public class ModelLoaderRegistryDebug
|
||||
|
||||
private OBJTesseractBlock()
|
||||
{
|
||||
super(Material.iron);
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
super(Material.IRON);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(MODID + ":" + name);
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
@@ -371,8 +371,8 @@ public class ModelLoaderRegistryDebug
|
||||
|
||||
private OBJVertexColoring1()
|
||||
{
|
||||
super(Material.iron);
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
super(Material.IRON);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(name);
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
@@ -403,9 +403,9 @@ public class ModelLoaderRegistryDebug
|
||||
|
||||
private OBJDirectionEye()
|
||||
{
|
||||
super(Material.iron);
|
||||
super(Material.IRON);
|
||||
setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(name);
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
@@ -487,8 +487,8 @@ public class ModelLoaderRegistryDebug
|
||||
|
||||
private OBJVertexColoring2()
|
||||
{
|
||||
super(Material.iron);
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
super(Material.IRON);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(name);
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
@@ -590,9 +590,9 @@ public class ModelLoaderRegistryDebug
|
||||
|
||||
private OBJDirectionBlock()
|
||||
{
|
||||
super(Material.iron);
|
||||
super(Material.IRON);
|
||||
this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(MODID + ":" + name);
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
@@ -678,9 +678,9 @@ public class ModelLoaderRegistryDebug
|
||||
|
||||
private OBJCustomDataBlock()
|
||||
{
|
||||
super(Material.iron);
|
||||
super(Material.IRON);
|
||||
this.setDefaultState(this.blockState.getBaseState().withProperty(NORTH, false).withProperty(SOUTH, false).withProperty(WEST, false).withProperty(EAST, false));
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(MODID + ":" + name);
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
@@ -735,8 +735,8 @@ public class ModelLoaderRegistryDebug
|
||||
public ExtendedBlockState state = new ExtendedBlockState(this, new IProperty[0], new IUnlistedProperty[] {OBJModel.OBJProperty.INSTANCE});
|
||||
private OBJDynamicEye()
|
||||
{
|
||||
super(Material.iron);
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
super(Material.IRON);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(MODID + ":" + name);
|
||||
setRegistryName(new ResourceLocation(MODID, name));
|
||||
}
|
||||
|
||||
@@ -32,10 +32,10 @@ public class MultiLayerModelDebug
|
||||
{
|
||||
public void preInit(FMLPreInitializationEvent event)
|
||||
{
|
||||
GameRegistry.register(new Block(Material.wood)
|
||||
GameRegistry.register(new Block(Material.WOOD)
|
||||
{
|
||||
{
|
||||
setCreativeTab(CreativeTabs.tabBlock);
|
||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||
setUnlocalizedName(MODID + "." + blockName);
|
||||
setRegistryName(blockId);
|
||||
}
|
||||
@@ -52,7 +52,7 @@ public class MultiLayerModelDebug
|
||||
return layer == BlockRenderLayer.SOLID || layer == BlockRenderLayer.TRANSLUCENT;
|
||||
}
|
||||
});
|
||||
GameRegistry.register(new ItemBlock(Block.blockRegistry.getObject(blockId)).setRegistryName(blockId));
|
||||
GameRegistry.register(new ItemBlock(Block.REGISTRY.getObject(blockId)).setRegistryName(blockId));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ public class MultiLayerModelDebug
|
||||
public void preInit(FMLPreInitializationEvent event)
|
||||
{
|
||||
super.preInit(event);
|
||||
ModelLoader.setCustomModelResourceLocation(Item.itemRegistry.getObject(blockId), 0, new ModelResourceLocation(blockId, "inventory"));
|
||||
ModelLoader.setCustomModelResourceLocation(Item.REGISTRY.getObject(blockId), 0, new ModelResourceLocation(blockId, "inventory"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ public class PotionRegistryDebug {
|
||||
public void renderInventoryEffect(int x, int y, PotionEffect effect, Minecraft mc) {
|
||||
Potion potion = effect.getPotion();
|
||||
|
||||
mc.getTextureManager().bindTexture(TextureMap.locationBlocksTexture);
|
||||
mc.getTextureManager().bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);
|
||||
TextureAtlasSprite sprite = mc.getTextureMapBlocks().getAtlasSprite("minecraft:blocks/fire_layer_0");
|
||||
|
||||
x += 6;
|
||||
@@ -89,7 +89,7 @@ public class PotionRegistryDebug {
|
||||
public void renderHUDEffect(int x, int y, PotionEffect effect, Minecraft mc, float alpha) {
|
||||
Potion potion = effect.getPotion();
|
||||
|
||||
mc.getTextureManager().bindTexture(TextureMap.locationBlocksTexture);
|
||||
mc.getTextureManager().bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);
|
||||
TextureAtlasSprite sprite = mc.getTextureMapBlocks().getAtlasSprite("minecraft:blocks/tnt_side");
|
||||
|
||||
x += 3;
|
||||
|
||||
Reference in new issue
Block a user