Minecraft Client Forge (1.12.2, # 2512) right click on chest?
How does it work?
This is supposed to work with the CPacketPlayerTryUseItemOnBlock, but how?
Minecraft.getConnection does not exist with me
Minecraft.getMinecraft.getNetHandler (). SendPacket (Packet p)
would that be for the Minecraft Mod Coder Pack (I think)
Io.netty.handler.codec.EncoderException: java.lang.NullPointerException
at io.netty.handler.codec.MessageToByteEncoder.write (MessageToByteEncoder.java:125) ~ [MessageToByteEncoder.class: 4.1.9.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0 (AbstractChannelHandlerContext.java:738) ~ [AbstractChannelHandlerContext.class: 4.1.9.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite (AbstractChannelHandlerContext.java:730) ~ [AbstractChannelHandlerContext.class: 4.1.9.Final]
at io.netty.channel.AbstractChannelHandlerContext.write (AbstractChannelHandlerContext.java:816) ~ [AbstractChannelHandlerContext.class: 4.1.9.Final]
at io.netty.channel.AbstractChannelHandlerContext.write (AbstractChannelHandlerContext.java:723) ~ [AbstractChannelHandlerContext.class: 4.1.9.Final]
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.write (NetworkDispatcher.java:542) ~ [NetworkDispatcher.class:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0 (AbstractChannelHandlerContext.java:738) ~ [AbstractChannelHandlerContext.class: 4.1.9.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush (AbstractChannelHandlerContext.java:801) ~ [AbstractChannelHandlerContext.class: 4.1.9.Final]
at io.netty.channel.AbstractChannelHandlerContext.write (AbstractChannelHandlerContext.java:814) ~ [AbstractChannelHandlerContext.class: 4.1.9.Final]
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush (AbstractChannelHandlerContext.java:794) ~ [AbstractChannelHandlerContext.class: 4.1.9.Final]
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush (AbstractChannelHandlerContext.java:831) ~ [AbstractChannelHandlerContext.class: 4.1.9.Final]
at io.netty.channel.DefaultChannelPipeline.writeAndFlush (DefaultChannelPipeline.java:1032) ~ [DefaultChannelPipeline.class: 4.1.9.Final]
at io.netty.channel.AbstractChannel.writeAndFlush (AbstractChannel.java:296) ~ [AbstractChannel.class: 4.1.9.Final]
at net.minecraft.network.NetworkManager $ 4.run (NetworkManager.java:261) [NetworkManager $ 4.class:?]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute $$$ capture (AbstractEventExecutor.java:163) [AbstractEventExecutor.class: 4.1.9.Final]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute (AbstractEventExecutor.java) [AbstractEventExecutor.class: 4.1.9.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks (SingleThreadEventExecutor.java:403) [SingleThreadEventExecutor.class: 4.1.9.Final]
at io.netty.channel.nio.NioEventLoop.run (NioEventLoop.java:442) [NioEventLoop.class: 4.1.9.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor $ 5.run (SingleThreadEventExecutor.java:858) [SingleThreadEventExecutor $ 5.class: 4.1.9.Final]
at java.lang.Thread.run (Thread.java:748) [?: 1.8.0_251]
Caused by: java.lang.NullPointerException
at net.minecraft.network.PacketBuffer.writeBlockPos (PacketBuffer.java:183) ~ [PacketBuffer.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.writePacketData (CPacketPlayerTryUseItemOnBlock.java:55) ~ [CPacketPlayerTryUseItemOnBlock.class:?]
at net.minecraft.network.NettyPacketEncoder.encode (NettyPacketEncoder.java:51) ~ [NettyPacketEncoder.class:?]
at net.minecraft.network.NettyPacketEncoder.encode (NettyPacketEncoder.java:12) ~ [NettyPacketEncoder.class:?]
at io.netty.handler.codec.MessageToByteEncoder.write (MessageToByteEncoder.java:107) ~ [MessageToByteEncoder.class: 4.1.9.Final]
… 19 more
Caused by: java.lang.NullPointerException
at net.minecraft.network.PacketBuffer.writeBlockPos (PacketBuffer.java:183) ~ [PacketBuffer.class:?]
what does your code look like? Did you not enter anything into the constructor of the package?
Yes, I don't know what to use
Googling