Jump to content

Lambda

Members
  • Posts

    486
  • Joined

  • Last visited

Everything posted by Lambda

  1. Hey there! So I have this blender model that is a 'crystal', however I cannot seem to find a guide on importing this into Minecraft. Some things I've seem is 'Cubik', but I don't want to spend 20 bucks on something that I'll only use a few times.. Any other suggestions? Thanks,
  2. Whats on line 51? at kriNon.endernet.lib.EnderRegistry.register(EnderRegistry.java:51)
  3. Hey there! So I've created a 'particle' that allows me to render a block and shoot it to a different position. However I'm having issues with getting this to work.. I have all the components need for the particle (rendering, packet, etc), so it left me to believe its something to do with how I'm rendering the block.. Maybe I'm using particles wrong? A TESR would not work due to it disappear when the block is not in view.. Here is my code: The Renderer (within a util class) @SideOnly(Side.CLIENT) public static void renderVoidCubes(double firstX, double firstY, double firstZ, double secondX, double secondY, double secondZ) { GlStateManager.pushMatrix(); GlStateManager.translate(firstX, firstY, firstZ); double frame = Minecraft.getSystemTime()/800d; GlStateManager.scale(.5, .5, .5); GlStateManager.translate(secondX, secondY, secondZ); GlStateManager.translate(0, ((frame *10)%firstY), 0); ResourceUtil.renderBlockInWorld(Blocks.DIRT, 0); GlStateManager.popMatrix(); } The client time / server time senders: @SideOnly(Side.CLIENT) public static void spawnVoidCubesWithTimeClient(double startX, double startY, double startZ, double endX, double endY, double endZ) { Minecraft mc = Minecraft.getMinecraft(); if(mc.player.getDistance(startX, startY, startZ) <= 64 || mc.player.getDistance(endX, endY, endZ) <= 64){ Particle fx = new ParticleVoidCube(mc.world, startX, startY, startZ, endX, endY, endZ); mc.effectRenderer.addEffect(fx); } } public static void spawnVoidCubesWithTimeServer(World world, double startX, double startY, double startZ, double endX, double endY, double endZ){ if(!world.isRemote){ NBTTagCompound data = new NBTTagCompound(); data.setDouble("StartX", startX); data.setDouble("StartY", startY); data.setDouble("StartZ", startZ); data.setDouble("EndX", endX); data.setDouble("EndY", endY); data.setDouble("EndZ", endZ); PacketHandler.theNetwork.sendToAllAround(new PacketServerToClient(data, PacketHandler.VOID_PARTICLE_HANDLER), new NetworkRegistry.TargetPoint(world.provider.getDimension(), startX, startY, startZ, 96)); } } Particle Class @SideOnly(Side.CLIENT) public class ParticleVoidCube extends Particle { private final double endX; private final double endY; private final double endZ; public ParticleVoidCube(World world, double startX, double startY, double startZ, double endX, double endY, double endZ) { super(world, startX, startY, startZ); this.endX = endX; this.endY = endY; this.endZ = endZ; } @Override public void renderParticle(VertexBuffer buffer, Entity entityIn, float partialTicks, float rotationX, float rotationZ, float rotationYZ, float rotationXY, float rotationXZ){ ResourceUtil.renderVoidCubes(this.posX+0.5, this.posY+0.5, this.posZ+0.5, this.endX+0.5, this.endY+0.5, this.endZ+0.5); } @Override public int getFXLayer(){ return 3; } } The network: public static final IDataHandler VOID_PARTICLE_HANDLER = new IDataHandler() { @Override @SideOnly(Side.CLIENT) public void handleData(NBTTagCompound compound, MessageContext context) { Minecraft mc = Minecraft.getMinecraft(); double inX = compound.getDouble("InX")+0.5; double inY = compound.getDouble("InY")+0.78; double inZ = compound.getDouble("InZ")+0.5; double outX = compound.getDouble("OutX")+0.5; double outY = compound.getDouble("OutY")+0.525; double outZ = compound.getDouble("OutZ")+0.5; if(mc.player.getDistance(outX, outY, outZ) <= 16){ Particle fx = new ParticleVoidCube(mc.world, outX, outY, outZ, inX, inY, inZ); mc.effectRenderer.addEffect(fx); } } }; Thanks!
  4. Yeah... That seemed to work!
  5. double percentedValue = (voidEnergy.getEnergyStored() / voidEnergy.getMaxEnergyStored()) * 100; I also tried: double percentedValue = (voidEnergy.getEnergyStored() / voidEnergy.getMaxEnergyStored()); double finalValue = percentedValue * 100; just in case multiplication was messing with it.
  6. That is what I thought... but still seems to return 0...
  7. Okay I believe I was able to get this work.. I ended up opting for a GUI instead of just referencing the fontRendererObj, however trying to divide the energyStored / capacity seems to always get me 0%... So I system.out both the ints, and they seem to be storing correctly, when I try to divide them.. I get 0. Maybe I'm just bad at math? I'm almost 100% sure its not due to my math skill . However, when I'm in a chunk that has been uneffected, it seems to return 100%, like expected. Anything less than the capacity.. returns 0; final String textToPrint = StringUtil.localizeFormatted("hud." + ModUtil.MOD_ID + ".voidenergy", ((voidEnergy.getEnergyStored() / voidEnergy.getMaxEnergyStored()) * 100)); drawString(minecraft.fontRendererObj, textToPrint + "%", 0,0, StringUtil.DECIMAL_COLOR_WHITE); with my localization being: hud.plentifulutilities.voidenergy=Void Flux: %d Also, would anybody know how to make a GUI screen that allows a person to edit the GUI values? Thanks!
  8. What does your custom implementation of EnergyStorage / IEnergyStorage look like?
  9. Hey there! So I was able to create (with some help) a 'energy' based system, each chunk has a value assigned.. However, trying to access this on the client side it seems that the chunks values are returning null, with a server check, they return the value.. So I'm guessing I need a packet, however I don't really know how to store the information and send it to the server side.. Here is the code I'm trying to display: (Within the RenderGameOverlayEvent.Post) if (player.getHeldItemMainhand().getItem() == InitItems.itemJAWrench || player.getHeldItemMainhand().getItem() == Items.CLOCK || player.getHeldItemOffhand().getItem() == InitItems.itemJAWrench || player.getHeldItemOffhand().getItem() == Items.CLOCK) { World world = player.world; final Chunk chunk = world.getChunkFromBlockCoords(new BlockPos(player.getPosition())); final ChunkPos chunkPos = chunk.getPos(); IVoidEnergy voidStorage = CapabilityVoidEnergy.getVoidEnergyFromChunk(world, chunkPos); if(voidStorage != null) { int percentValue = (voidStorage.getEnergyStored() / voidStorage.getMaxEnergyStored()) * 100; minecraft.fontRendererObj.drawStringWithShadow("Void Flux: " + percentValue + "%", event.getResolution().getScaledWidth()/2+5, event.getResolution().getScaledHeight()/2+15, StringUtil.DECIMAL_COLOR_WHITE); }else{ minecraft.fontRendererObj.drawStringWithShadow("No Void Flux In This Chunk!", event.getResolution().getScaledWidth()/2+5, event.getResolution().getScaledHeight()/2+15, StringUtil.DECIMAL_COLOR_WHITE); } } Everything seems to work, however when I hold the correct Item, the 'no void flux in this chunk' seems to display, meaning that the chunk value is null.. So this left me to believe that I need to send a packet, however I'm having trouble on what values to send... the ChuckPos? the value? the chunk itself.. etc etc... So I have this so far, however I came here to see if anybody can help me finish the rest: public static final IDataHandler VOID_NETWORK_HANDLER = new IDataHandler() { @Override @SideOnly(Side.CLIENT) public void handleData(NBTTagCompound compound, MessageContext context) { World world = Minecraft.getMinecraft().world; EntityPlayer player = Minecraft.getMinecraft().player; if(world != null) { //Some how access the value > write it to the compound > (rest I know how to do) } } }; The rest of the code can be accessed though my github below.. here are some references so you can find the classes easily; event>ClientSideEvents - The overlay event network>PacketHandler - Where I'm handling all of my packets voidenergy - where all the capability stuff is api > capability - where all of the interfacing is.
  10. Thanks, now would you know how I would make it continuous without it fading away / get stronger? Just static, but rotating around.
  11. Hey there, So I want to start learning some more TESR as because I want to start doing some cooler rendering effects and such as.. I just want to start simple, ex a cube, however, know would I go about coding something like this? Is there any 'good' tutorials out there that would help me under stand something like this? What I want to have happen: cubes spawn at the bottom of my multi-structure, then the slowly move up, in which they disappear... sounds simple?
  12. No, the System.outs on the overlay: (these lines) the one that says displays works, however the other one doesnt run at all, which tells me the if state about is false.
  13. Hey there.. So I have this overlay that displays my energy, however, I have created an interface, when combined with a TE, will display the 'Void Flux' of that chunk, however for some reason it seems that the interface returns null, even though I've done the same thing for the energy, and it seems to work.. Here is the overlay event class: @SubscribeEvent public void onGameOverlay(RenderGameOverlayEvent.Post event){ if(event.getType() == RenderGameOverlayEvent.ElementType.ALL && Minecraft.getMinecraft().currentScreen == null){ Minecraft minecraft = Minecraft.getMinecraft(); EntityPlayer player = minecraft.player; RayTraceResult posHit = minecraft.objectMouseOver; FontRenderer font = minecraft.fontRendererObj; ItemStack stack = player.getHeldItemMainhand(); if(StackUtil.isValid(stack)){ if(stack.getItem() instanceof IHudDisplay){ ((IHudDisplay)stack.getItem()).displayHud(minecraft, player, stack, posHit, event.getResolution()); } } if(posHit != null && posHit.getBlockPos() != null){ Block blockHit = minecraft.world.getBlockState(posHit.getBlockPos()).getBlock(); TileEntity tileHit = minecraft.world.getTileEntity(posHit.getBlockPos()); if(blockHit instanceof IHudDisplay){ ((IHudDisplay)blockHit).displayHud(minecraft, player, stack, posHit, event.getResolution()); } if(tileHit instanceof TileEntityBase){ TileEntityBase base = (TileEntityBase)tileHit; if(base.isRedstoneToggle()){ String strg = "Activation Mode: "+ TextFormatting.DARK_RED+(base.isPulseMode ? "Pulse" : "Deactivation")+TextFormatting.RESET; font.drawStringWithShadow(strg, event.getResolution().getScaledWidth()/2+5, event.getResolution().getScaledHeight()/2+5, StringUtil.DECIMAL_COLOR_WHITE); String expl; if(StackUtil.isValid(stack) && stack.getItem() == InitItems.itemJAWrench){ expl = TextFormatting.GREEN+"Right-Click to adjust!"; } else{ expl = TextFormatting.GRAY.toString()+TextFormatting.ITALIC+"Hold a " + TextFormatting.BLUE + "Wrench " + TextFormatting.GRAY + " to Adjust"; } font.drawStringWithShadow(expl, event.getResolution().getScaledWidth()/2+5, event.getResolution().getScaledHeight()/2+15, StringUtil.DECIMAL_COLOR_WHITE); } } if(tileHit instanceof IEnergyDisplay){ IEnergyDisplay display = (IEnergyDisplay)tileHit; if(!display.needsHoldShift() || player.isSneaking()){ if(energyDisplay == null){ energyDisplay = new EnergyDisplay(0, 0, null); } energyDisplay.setData(2, event.getResolution().getScaledHeight()-96, display.getEnergyStorage(), true, true); GlStateManager.pushMatrix(); GlStateManager.color(1F, 1F, 1F, 1F); energyDisplay.draw(); GlStateManager.popMatrix(); } } if(tileHit instanceof IVoidEnergyUser) { IVoidEnergyUser voidEnergy = (IVoidEnergyUser) tileHit; if(!player.isSneaking()) { System.out.println("displays"); if(voidEnergy.getVoidEnergy() != null) { System.out.println("Does not displays"); minecraft.fontRendererObj.drawStringWithShadow("Void Flux: " + voidEnergy.getVoidEnergy().getEnergyStored(), event.getResolution().getScaledWidth()/2+5, event.getResolution().getScaledHeight()/2+15, StringUtil.DECIMAL_COLOR_WHITE); } } } } } } in particular: if(tileHit instanceof IVoidEnergyUser) { IVoidEnergyUser voidEnergy = (IVoidEnergyUser) tileHit; if(!player.isSneaking()) { System.out.println("displays"); if(voidEnergy.getVoidEnergy() != null) { System.out.println("Does not displays"); minecraft.fontRendererObj.drawStringWithShadow("Void Flux: " + voidEnergy.getVoidEnergy().getEnergyStored(), event.getResolution().getScaledWidth()/2+5, event.getResolution().getScaledHeight()/2+15, StringUtil.DECIMAL_COLOR_WHITE); } } } } } Also, the IVoidEnergyUser: public interface IVoidEnergyUser { @SideOnly(Side.CLIENT) IVoidEnergy getVoidEnergy(); } Lastly, the TE: public IVoidEnergy voidStorage; public TileEntityVoidPump() { super("geothermicPump"); } @Override public void updateEntity() { super.updateEntity(); if(!world.isRemote) { if (player != null) { tick++; if(voidStorage == null) { final Chunk chunk = world.getChunkFromBlockCoords(this.getPos()); final ChunkPos chunkPos = chunk.getPos(); this.voidStorage = CapabilityVoidEnergy.getVoidEnergyFromChunk(world, chunkPos); } if(voidStorage != null) { if(tick >= 10) { if(!hasDug) { digDownOperation(); }else { renderLaserToEndPoint(this.getPos().getX(), -15, this.getPos().getZ()); verifyScafolding(); if(rand.nextInt(5) == 0) { voidStorage.extractEnergy(rand.nextInt(2), false); } storage.receiveEnergyInternal(PRODUCE, false); } tick=0; } }else { ModUtil.LOGGER.warn("A Player tried interacting with a null chunk! Restart your world!"); } }else if(uuid != null){ this.player = getPlayerFromUUID(uuid); } if(uuid == null & player != null) { setUuid(player.getUniqueID()); } if(player == null && uuid == null) { ModUtil.LOGGER.warn("No player or UUID was saved! A player must replace the Geothermic Pump @ x: " + pos.getX() + " y: " + pos.getY() + " z: " + pos.getZ()); } if(this.oldEnergy != this.storage.getEnergyStored() || this.oldVoid != this.voidStorage.getEnergyStored() && this.sendUpdateWithInterval()){ this.oldEnergy = this.storage.getEnergyStored(); this.oldVoid = this.voidStorage.getEnergyStored(); } } } public void digDownOperation() { if (blockToBreak == null || (blockToBreak.getX() == 0 && blockToBreak.getY() == 0 && blockToBreak.getZ() == 0)) { blockToBreak = new BlockPos(this.getPos().getX(), this.getPos().getY() - 1, this.getPos().getZ()); }else { IBlockState block = world.getBlockState(blockToBreak); if(block.getBlock() == Blocks.AIR) { world.setBlockState(blockToBreak, InitBlocks.blockScafolding.getDefaultState()); blockToBreak = blockToBreak.down(); }else if(!(block.getBlock() instanceof BlockContainer)) { renderStaticEffect(EnumParticleTypes.END_ROD, blockToBreak.getX(), blockToBreak.getY(), blockToBreak.getZ()); world.destroyBlock(blockToBreak, false); }else { renderStaticEffect(EnumParticleTypes.SMOKE_NORMAL, this.getPos().getX(), this.getPos().getY()+.5, this.getPos().getZ()); } } if(blockToBreak.getY() <= 0) { hasDug = true; } } @Override public IVoidEnergy getVoidEnergy() { if(voidStorage != null) { return voidStorage; }else { return null; } } For github users: IVoidEnergyUser: >interfacing Event: >event TE: block>tile>TileEntityVoidPump Thanks.
  14. Still no luck
  15. Okay that seemed to fix the lag issue, but white dimly flashes and the effect still won't display :^( Git has been updated.
  16. You would have to update isRunning on the client, just use a "frame" counter in your TESR to limit the render calls. Okay, trying to do whats on the git seems to make my screen flash white and lag.. a lot, like 10 fps.
  17. Sorry, just did.
  18. Okay now it seems that I cannot find the TESR anywhere , maybe I can modify the code so the position is set where I want it? I just don't know how
  19. Okay it seemed to load however, when I join I seem to get VERY low FPS and just have a white screen: (git updated) And I have a pretty good computer.
  20. net.minecraft.util.ReportedException: Rendering Block Entity at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.renderTileEntityAt(TileEntityRendererDispatcher.java:163) ~[TileEntityRendererDispatcher.class:?] at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.renderTileEntity(TileEntityRendererDispatcher.java:131) ~[TileEntityRendererDispatcher.class:?] at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:723) ~[RenderGlobal.class:?] at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1385) ~[EntityRenderer.class:?] at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1299) ~[EntityRenderer.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1106) ~[EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1140) ~[Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:407) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_91] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_91] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_91] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: java.lang.IllegalStateException: Already building! at net.minecraft.client.renderer.VertexBuffer.begin(VertexBuffer.java:188) ~[VertexBuffer.class:?] at com.lambda.plentifulutilities.util.lib.DragonTESR.renderTileEntityFast(DragonTESR.java:50) ~[DragonTESR.class:?] at com.lambda.plentifulutilities.util.lib.DragonTESR.renderTileEntityFast(DragonTESR.java:17) ~[DragonTESR.class:?] at net.minecraftforge.client.model.animation.FastTESR.renderTileEntityAt(FastTESR.java:58) ~[FastTESR.class:?] at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.renderTileEntityAt(TileEntityRendererDispatcher.java:156) ~[TileEntityRendererDispatcher.class:?] ... 20 more [01:45:54] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: ---- Minecraft Crash Report ---- // Would you like a cupcake? Time: 1/2/17 1:45 AM Description: Rendering Block Entity java.lang.IllegalStateException: Already building! at net.minecraft.client.renderer.VertexBuffer.begin(VertexBuffer.java:188) at com.lambda.plentifulutilities.util.lib.DragonTESR.renderTileEntityFast(DragonTESR.java:50) at com.lambda.plentifulutilities.util.lib.DragonTESR.renderTileEntityFast(DragonTESR.java:17) at net.minecraftforge.client.model.animation.FastTESR.renderTileEntityAt(FastTESR.java:58) at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.renderTileEntityAt(TileEntityRendererDispatcher.java:156) at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.renderTileEntity(TileEntityRendererDispatcher.java:131) at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:723) at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1385) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1299) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1106) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1140) at net.minecraft.client.Minecraft.run(Minecraft.java:407) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Client thread Stacktrace: at net.minecraft.client.renderer.VertexBuffer.begin(VertexBuffer.java:188) at com.lambda.plentifulutilities.util.lib.DragonTESR.renderTileEntityFast(DragonTESR.java:50) at com.lambda.plentifulutilities.util.lib.DragonTESR.renderTileEntityFast(DragonTESR.java:17) at net.minecraftforge.client.model.animation.FastTESR.renderTileEntityAt(FastTESR.java:58) -- Block Entity Details -- Details: Name: minecraft:plentifulutilities.restorer // com.lambda.plentifulutilities.block.tile.TileEntityRestorer Block type: ID #238 (tile.plentifulutilities.block_restorer // com.lambda.plentifulutilities.block.BlockRestorer) Block data value: 0 / 0x0 / 0b0000 Block location: World: (-136,63,243), Chunk: (at 8,3,3 in -9,15; contains blocks -144,0,240 to -129,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511) Actual block type: ID #238 (tile.plentifulutilities.block_restorer // com.lambda.plentifulutilities.block.BlockRestorer) Actual block data value: 0 / 0x0 / 0b0000 Stacktrace: at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.renderTileEntityAt(TileEntityRendererDispatcher.java:156) at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.renderTileEntity(TileEntityRendererDispatcher.java:131) at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:723) at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1385) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1299)
  21. Oops. Github updated, but still the same error ..
  22. Updated, but still get the crash here : vertexbuffer.begin(6, DefaultVertexFormats.POSITION_COLOR);
  23. Okay github updated, however I seem to be getting this error when the TESR is going to draw: java.lang.IllegalStateException: Already building! at net.minecraft.client.renderer.VertexBuffer.begin(VertexBuffer.java:188) at com.lambda.plentifulutilities.util.lib.DragonTESR.renderTileEntityFast(DragonTESR.java:52) at com.lambda.plentifulutilities.util.lib.DragonTESR.renderTileEntityFast(DragonTESR.java:17) at net.minecraftforge.client.model.animation.FastTESR.renderTileEntityAt(FastTESR.java:58) at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.renderTileEntityAt(TileEntityRendererDispatcher.java:156) at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.renderTileEntity(TileEntityRendererDispatcher.java:131) at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:723) at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1385) at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1299) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1106) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1140) at net.minecraft.client.Minecraft.run(Minecraft.java:407) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) I haven't messed much with TESR so I have no clue what to do.
  24. Hmm still getting an error
  25. GameRegistry.registerTileEntitySpecialRenderer Does not exist, do you mean ClientRegistry.registerTileEntity ? If so I have this: ClientRegistry.registerTileEntity(TileEntityRestorer.class, ModUtil.MOD_ID + ".restorer", DragonTESR.class); but this IDE throws: reason: no instance(s) of type variable(s) T exist so that Class<DragonTESR> conforms to TileEntitySpecialRenderer<? super T>
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.