Skip to content

Instantly share code, notes, and snippets.

package shadekiller666.multiblock.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyBool;
import net.minecraft.block.properties.PropertyDirection;
import net.minecraft.block.state.BlockState;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
public class BlockTrackRenderHandler implements ISimpleBlockRenderingHandler {
int renderId = -1;
public BlockTrackRenderHandler(int renderId) {
this.renderId = renderId;
}
@Override
public void renderInventoryBlock(Block block, int metadata, int modelId, RenderBlocks renderer) {
if (block instanceof BlockTrack) {
package rcteam.rc2.proxy;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.client.resources.IResourceManager;
import net.minecraft.item.Item;
import net.minecraft.util.ResourceLocation;
public class CoasterPack {
public enum Type {
FOLDER, ZIP
}
private Type type;
private String name;
private ZipFile zipFile;
// private HashMap<String, BlockTrack> tracks = new HashMap<>();
Connected to the target VM, address: '127.0.0.1:49706', transport: 'socket'
[13:50:29] [main/INFO]: username: [email protected]
[13:50:29] [main/INFO]: Extra: []
[13:50:29] [main/INFO]: Password found, attempting login
[13:50:29] [main/INFO]: Logging in with username & password
[13:50:31] [main/INFO]: Login Succesful!
[13:50:31] [main/INFO]: Running with arguments: [--userProperties, [{"name":"twitch_access_token","value":"fnpsih9tsgq7wgs04619cbzxwfu024d"}], --assetsDir, C:/Users/Gerald/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --userType, mojang, --accessToken, {REDACTED}, --version, 1.8, --uuid, 1487d900d7a847b494cf0cd5ddf9160e, --username, shadekiller666, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[13:50:31] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[13:50:31] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[13:50
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyBool;
import net.minecraft.block.properties.PropertyDirection;
import net.minecraft.block.state.BlockState;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityLivingBase;
[15:44:14] [Client thread/ERROR] [FML]: Model definition for location rc2:tile.track_water#inventory not found
[15:44:14] [Client thread/ERROR] [FML]: Model definition for location rc2:tile.entrance#inventory not found
[15:44:14] [Client thread/ERROR] [FML]: Model definition for location rc2:tile.track_wooden#facing=down not found
[15:44:14] [Client thread/ERROR] [FML]: Model definition for location rc2:tile.track_water#facing=west not found
[15:44:14] [Client thread/ERROR] [FML]: Model definition for location rc2:item.scoop#inventory not found
[15:44:14] [Client thread/ERROR] [FML]: Model definition for location rc2:tile.track_inverted#facing=down not found
[15:44:14] [Client thread/ERROR] [FML]: Model definition for location rc2:tile.track_water#facing=down not found
[15:44:14] [Client thread/ERROR] [FML]: Model definition for location rc2:tile.track_inverted#facing=west not found
[15:44:14] [Client thread/ERROR] [FML]: Model definition for location rc2:item.hammer#inventory not found
[15:44:14] [Client thr
package rcteam.rc2.proxy;
import net.minecraft.client.renderer.ItemMeshDefinition;
import net.minecraft.client.resources.IReloadableResourceManager;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.item.ItemStack;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.client.model.ModelLoaderRegistry;
import net.minecraft.client.Minecraft;
package rcteam.rc2.block;
import com.google.common.collect.Lists;
import net.minecraft.block.properties.PropertyDirection;
import net.minecraft.block.properties.PropertyHelper;
import net.minecraft.block.state.BlockState;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
package rcteam.rc2.block;
import com.google.common.collect.Lists;
import net.minecraft.block.properties.PropertyDirection;
import net.minecraft.block.properties.PropertyHelper;
import net.minecraft.block.state.BlockState;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;