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


  • Posts

  • Joined

  • Last visited

i4m2g00d4u's Achievements

Tree Puncher

Tree Puncher (2/8)



  1. Hey! Can someone say me why it doesn`t work? (I didn`t get any Messages if a packet sent or recieved) Do I need to register the class somewhere? package de.i4m2g00d4u.enderclient.mixin; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import com.darkmagician6.eventapi.EventManager; import de.i4m2g00d4u.enderclient.listener.eventapi.EventPacket; import de.i4m2g00d4u.enderclient.utils.Addon; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import io.netty.channel.ChannelHandlerContext; import net.minecraft.client.Minecraft; import net.minecraft.network.NetworkManager; import net.minecraft.network.Packet; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.eventhandler.Event; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; @Mixin({NetworkManager.class}) public class MixinNetworkManager extends Event{ @Inject(method = {"channelRead0"}, at = {@At("HEAD")}, cancellable = true) private void read(ChannelHandlerContext context, Packet<?> packet, CallbackInfo callback) { EventPacket event = new EventPacket(packet); EventManager.call(event); Addon.sendMessage("3"); if (event.isCancelled()) { callback.cancel(); Addon.sendMessage("2"); } else { Addon.sendMessage("1"); } } @Inject(method = {"sendPacket(Lnet/minecraft/network/Packet;)V"}, at = {@At("HEAD")}, cancellable = true) private void send(Packet<?> packet, CallbackInfo callback) { EventPacket event = new EventPacket(packet); EventManager.call(event); Addon.sendMessage("3.1"); if (event.isCancelled()) { callback.cancel(); Addon.sendMessage("2.1"); } else { Addon.sendMessage("1.1"); } } }
  2. I need a PlayerDamageEvent for a Minecraft Mod (Clientside)
  3. Hello Guys! I would like to make a mod with which you send a packet to the client where it says which server you are currently connected. I need that for a Labymod addon to have show there "Player is now playing on HELLO GUYS" like this:
  4. How to make an Ingame HUD like this: https://imgur.com/a/tl0QwRv Can someone make an example pls?
  • Create New...

Important Information

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