Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[UNSOLVED] Adding a new method to a base class, without changing it?


HydroBane
 Share

Recommended Posts

It sounds quite confusing, and I assume the answer isn't simple, but I would like to know if there is a way I can add a method to Block.class without actually changing the class itself?

 

Can I add said method to Block.class via one of my classes I've added?

 

Thanks in advance

~Hydro

Link to comment
Share on other sites

Just add the method to the block(s) you need it on :)

 

I think the idea is that he wants the function on vanilla blocks as well.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

The best thing to do would be to file in to lex or overmind to ask for new methods, OR you could make a mod for the base code(A.K.A make a new class with the same name as other and change methods then recompile) then, rename that new class to the name of the class it is replacing, (for example, 3letters.class = blocks.java) then make sure you have that as your dependencies in your mod(in the @Mod area)

 

Hope this helps!

The Korecraft Mod

Link to comment
Share on other sites

I've solved it!

I didn't need to add it to Block.class afterall, I was just using the wrong type of method...

 

*facepalm*

 

Thanks for your replies anyway!

 

EDIT:

 

I haven't fixed it.

 

My method, in case you need it:

public static void setTextureType(Block block, String name) {
setTextureType(block, name);
}

 

And I've called it in my main class:

TextureTypes type = new TextureTypes();
type.setTextureType(BlockAzurite, "azurite");

Link to comment
Share on other sites

If you are trying to make a modular texture pack, heres the code:

 

In clientside file(any of them)

public static String azurite = "ModName:.png file name(no .png on end)";

place the texture in your src for MCP

/src/mods/ModName/textures/file name.png

then when exporting mod, put the /mods folder into the minecraft.jar to give textures

 

In your block file:

public void registerIcons(IconRegister iconRegister)
{
	blockIcon = iconRegister.registerIcon(ClientsideFile.azurite);
}

The Korecraft Mod

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • It says the error was Rendering overlay, please help me with this one; (Here is the full report below if needed)   ---- Minecraft Crash Report ---- // I bet Cylons wouldn't have this problem. Time: 12/8/21, 6:30 PM Description: Rendering overlay java.lang.VerifyError: Bad access to protected data in getfield Exception Details:   Location:     net/minecraft/client/renderer/entity/player/PlayerRenderer.renderArm(ZLnet/minecraft/client/player/AbstractClientPlayer;Lnet/minecraft/client/model/geom/ModelPart;Lcom/mojang/blaze3d/vertex/PoseStack;ILnet/minecraft/client/renderer/MultiBufferSource;Lnet/minecraft/client/renderer/entity/LivingEntityRenderer;Lnet/minecraft/world/entity/LivingEntity;I)V @7: getfield   Reason:     Type top (current frame, stack[1]) is not assignable to 'net/minecraft/client/renderer/entity/player/PlayerRenderer'   Current Frame:     bci: @7     flags: { }     locals: { 'net/minecraft/client/renderer/entity/player/PlayerRenderer', integer, 'net/minecraft/client/player/AbstractClientPlayer', 'net/minecraft/client/model/geom/ModelPart', 'com/mojang/blaze3d/vertex/PoseStack', integer, 'net/minecraft/client/renderer/MultiBufferSource', 'net/minecraft/client/renderer/entity/LivingEntityRenderer', 'net/minecraft/world/entity/LivingEntity', integer }     stack: { 'net/minecraft/client/model/EntityModel' }   Bytecode:     0000000: 1904 b601 9519 07b4 02d9 c102 dc99 001b     0000010: 1904 1b99 0009 1402 fba7 0006 1402 fd14     0000020: 02ff 1403 01b6 01d3 2a2c b600 7d19 07b4     0000030: 02d9 0bb5 0305 1907 c103 0799 0022 1907     0000040: c003 073a 0a19 0ab4 0308 c000 170b b503     0000050: 0919 0ab4 0308 c000 1703 b503 0a19 07c1     0000060: 0307 9a00 0e19 07b6 030b c100 1c99 0028     0000070: 1b99 0024 2cb6 0115 b203 0ea6 001a 2cb2     0000080: 00f7 b601 2bb6 010a 9900 0d19 0414 030f     0000090: 0e0e b601 d319 07b4 02d9 1908 0b0b 0b0b     00000a0: 0bb6 0313 2d0b b502 1d2d 1904 1906 1907     00000b0: 1908 b603 15b8 0318 b902 2902 0015 05b2     00000c0: 022e b602 3219 04b6 01d6 b1               Stackmap Table:     same_locals_1_stack_item_frame(@28,Object[#381])     full_frame(@31,{Object[#2],Integer,Object[#159],Object[#192],Object[#381],Integer,Object[#549],Object[#5],Object[#737],Integer},{Object[#381],Double})     same_frame(@40)     same_frame(@93)     same_frame(@112)     same_frame(@149)     at net.minecraft.client.renderer.entity.EntityRenderers.m_174097_(SourceFile:24) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.client.renderer.entity.EntityRenderers.m_174044_(SourceFile:164) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B}     at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:146) ~[guava-21.0.jar%2320!:?] {}     at net.minecraft.client.renderer.entity.EntityRenderers.m_174051_(SourceFile:162) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.client.renderer.entity.EntityRenderDispatcher.m_6213_(EntityRenderDispatcher.java:334) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.server.packs.resources.ResourceManagerReloadListener.m_10759_(ResourceManagerReloadListener.java:18) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,re:mixin}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:780) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:791) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:780) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:791) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:780) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:791) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:780) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:710) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:710) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:710) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:710) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:710) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:710) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at com.mojang.blaze3d.systems.RenderSystem.m_69884_(SourceFile:179) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at com.mojang.blaze3d.systems.RenderSystem.m_69495_(SourceFile:166) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at com.mojang.blaze3d.platform.Window.m_85435_(Window.java:333) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1062) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:659) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:186) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:runtimedistcleaner:A}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?] {}     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}     at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?] {}     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:45) ~[fmlloader-1.17.1-37.0.82.jar%2322!:?] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.0.7.jar%235!:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.0.7.jar%235!:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.0.7.jar%235!:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.0.7.jar%235!:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.0.7.jar%235!:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.0.7.jar%235!:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.0.7.jar%235!:?] {}     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:90) [bootstraplauncher-0.1.17.jar:?] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace:     at net.minecraft.client.renderer.entity.EntityRenderers.m_174097_(SourceFile:24) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.client.renderer.entity.EntityRenderers.m_174044_(SourceFile:164) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B}     at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:146) ~[guava-21.0.jar%2320!:?] {}     at net.minecraft.client.renderer.entity.EntityRenderers.m_174051_(SourceFile:162) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.client.renderer.entity.EntityRenderDispatcher.m_6213_(EntityRenderDispatcher.java:334) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.server.packs.resources.ResourceManagerReloadListener.m_10759_(ResourceManagerReloadListener.java:18) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,re:mixin}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:780) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:791) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:780) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:791) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:780) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:791) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:780) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:710) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:710) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:710) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:710) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:710) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SourceFile:71) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.execute(SourceFile:101) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_10834_(SourceFile:70) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at java.util.concurrent.CompletableFuture$UniCompletion.claim(CompletableFuture.java:568) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:710) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) ~[?:?] {}     at java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610) ~[?:?] {}     at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478) ~[?:?] {}     at com.mojang.blaze3d.systems.RenderSystem.m_69884_(SourceFile:179) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading}     at com.mojang.blaze3d.systems.RenderSystem.m_69495_(SourceFile:166) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading} -- Overlay render details -- Details:     Overlay name: net.minecraft.client.gui.screens.LoadingOverlay Stacktrace:     at net.minecraft.client.renderer.GameRenderer.m_109093_(GameRenderer.java:877) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1040) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:659) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:186) ~[client-1.17.1-20210706.113038-srg.jar%23101!:?] {re:classloading,pl:runtimedistcleaner:A}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?] {}     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}     at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?] {}     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:45) ~[fmlloader-1.17.1-37.0.82.jar%2322!:?] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.0.7.jar%235!:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.0.7.jar%235!:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.0.7.jar%235!:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.0.7.jar%235!:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.0.7.jar%235!:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.0.7.jar%235!:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.0.7.jar%235!:?] {}     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:90) [bootstraplauncher-0.1.17.jar:?] {} -- Last reload -- Details:     Reload number: 1     Reload reason: initial     Finished: No     Packs: Default -- System Details -- Details:     Minecraft Version: 1.17.1     Minecraft Version ID: 1.17.1     Operating System: Windows 10 (amd64) version 10.0     Java Version: 16.0.1, Microsoft     Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft     Memory: 1401075712 bytes (1336 MiB) / 1962934272 bytes (1872 MiB) up to 4294967296 bytes (4096 MiB)     CPUs: 6     Processor Vendor: GenuineIntel     Processor Name: Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz     Identifier: Intel64 Family 6 Model 158 Stepping 10     Microarchitecture: Coffee Lake     Frequency (GHz): 2.90     Number of physical packages: 1     Number of physical CPUs: 6     Number of logical CPUs: 6     Graphics card #0 name: NVIDIA GeForce GTX 1050 Ti     Graphics card #0 vendor: NVIDIA (0x10de)     Graphics card #0 VRAM (MB): 4095.00     Graphics card #0 deviceId: 0x1c82     Graphics card #0 versionInfo: DriverVersion=30.0.14.7141     Memory slot #0 capacity (MB): 8192.00     Memory slot #0 clockSpeed (GHz): 2.67     Memory slot #0 type: DDR4     Memory slot #1 capacity (MB): 8192.00     Memory slot #1 clockSpeed (GHz): 2.67     Memory slot #1 type: DDR4     Virtual memory max (MB): 24253.32     Virtual memory used (MB): 12864.45     Swap memory total (MB): 7936.00     Swap memory used (MB): 82.73     JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4096m -Xms256m     Launched Version: forge-37.0.82     Backend library: LWJGL version 3.2.2 SNAPSHOT     Backend API: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 GL version 3.2.0 NVIDIA 471.41, NVIDIA Corporation     Window size: 1024x768     GL Caps: Using framebuffer using OpenGL 3.2     GL debug messages:      Using VBOs: Yes     Is Modded: Definitely; Client brand changed to 'forge'     Type: Client (map_client.txt)     Graphics mode: fancy     Resource Packs:      Current Language: English (US)     CPU: 6x Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz     ModLauncher: 9.0.7+91+master.8569cdf     ModLauncher launch target: forgeclient     ModLauncher naming: srg     ModLauncher services:           mixin PLUGINSERVICE           eventbus PLUGINSERVICE           object_holder_definalize PLUGINSERVICE           runtime_enum_extender PLUGINSERVICE           capability_token_subclass PLUGINSERVICE           capability_inject_definalize PLUGINSERVICE           accesstransformer PLUGINSERVICE           runtimedistcleaner PLUGINSERVICE           mixin TRANSFORMATIONSERVICE           fml TRANSFORMATIONSERVICE      FML Language Providers:          minecraft@1.0         javafml@null     Mod List:          client-1.17.1-20210706.113038-srg.jar             |Minecraft                     |minecraft                     |1.17.1              |NONE      |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f         forge-1.17.1-37.0.82-universal.jar                |Forge                         |forge                         |37.0.82             |NONE      |Manifest: 22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90
    • but that's terrible, i can't upgrade because every mod that i am using with this mod is using 1.12.2
    • 1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • When i make a TileEntitySpecialRenderer and then use the render function to render the item the item rendered is flickered and it has texture glitches   public class ShelfTileRenderer extends TileEntitySpecialRenderer<TileEntityShelf> { @Override public void render(TileEntityShelf te, double x, double y, double z, float partialTicks, int destroyStage, float alpha) { GL11.glPushMatrix(); GL11.glTranslatef((float)x + 0.5F, (float)y + 1.02F, (float)z + 0.3F); GL11.glRotatef(180, 0, 1, 1); //RenderManager.renderEntityWithPosYaw(this.entItem, 0.0D, 0.0D, 0.0D, 0.0F, 0.0F); //ItemStack is = te.itemInShelf.getStackInSlot(0); RenderItem itemRenderer = Minecraft.getMinecraft().getRenderItem(); //IBakedModel ibakedmodel = itemRenderer.getItemModelWithOverrides(is, te.getWorld(), (EntityLivingBase)null); //IBakedModel transformedModel = net.minecraftforge.client.ForgeHooksClient.handleCameraTransforms(ibakedmodel, ItemCameraTransforms.TransformType.GROUND, false); //itemRenderer.renderItem(is, itemRenderer.getItemModelMesher().getItemModel(is)); //ForgeHooksClient.renderLitItem(itemRenderer, itemRenderer.getItemModelMesher().getItemModel(is), -1, is); ItemStack itemstack = te.itemInShelf.getStackInSlot(0); GlStateManager.enableRescaleNormal(); GlStateManager.alphaFunc(516, 0.1F); GlStateManager.enableBlend(); RenderHelper.enableStandardItemLighting(); GlStateManager.tryBlendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO); IBakedModel ibakedmodel = itemRenderer.getItemModelWithOverrides(itemstack, te.getWorld(), (EntityLivingBase)null); IBakedModel transformedModel = net.minecraftforge.client.ForgeHooksClient.handleCameraTransforms(ibakedmodel, ItemCameraTransforms.TransformType.GROUND, false); itemRenderer.renderItem(itemstack, transformedModel); GlStateManager.disableRescaleNormal(); GlStateManager.disableBlend(); //Minecraft.getMinecraft().getRenderItem().renderItem(te.itemInShelf.getStackInSlot(0),); GL11.glPopMatrix(); } }    
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.