-
packet receive (event ?)
Really? I find that hard to believe with the existence of channelRead0? Is there nothing whatsoever available?
-
packet receive (event ?)
Mostly for testing purposes. I'd like to intercept each incoming packet, get what type of packet it is and I'd like to manipulate them. For example (Not what im trying but I've heard of this being done) : If you want a hacked client flight to bypass the vanilla fly kick you'd catch all incoming keep alive packets and cancel them. Edit: there is a functon in NetworkManager that can easily achieve this but it's not visible and I'm not familiar with reflection or whether or not there is a better alternative but the function is: channelread0(ChannelHandlerContext ctx, Packet packet) throws Exception { //Channel read code }
-
packet receive (event ?)
oh, i apologize. I mean detecting incoming vanilla packets clientside.
-
packet receive (event ?)
Hello, just wondering if there is a way to intercept packets with an event or something of the sort? eg: @SubscribeEvent public void onPacketReceive(PacketReceiveEvent event) { }
-
[1.8.9] packet receive
I was wondering if there was any way to monitor all incoming and outgoing packets clientside only, thanks!
-
[Solved] Sounds getting distorted
oh... what should i use? lol edit nevermind 1.0 is default, THANKS
-
[Solved] Sounds getting distorted
Hey its me, the annoying sound guy so I've finally fixed all server issues with sounds playing etc. but now when it plays in eclipse the sound is perfect but when it plays on a minecraft client it becomes longer and WAY deeper. here is code: package cerni; import java.util.UUID; import *****.proxy.CommonProxy; import ibxm.Player; import net.minecraft.client.Minecraft; import net.minecraft.client.audio.SoundCategory; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; import net.minecraftforge.client.event.ClientChatReceivedEvent; import net.minecraftforge.client.event.RenderGameOverlayEvent.Chat; import net.minecraftforge.client.event.sound.SoundEvent; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.ServerChatEvent; import net.minecraftforge.event.entity.living.LivingDeathEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; @Mod(modid = Main.MOD_ID, name = Main.NAME, version = Main.VERSION) public class Main { public static final String MOD_ID = "zillexcm"; public static final String NAME = "*****"; public static final String VERSION = "0.1"; public String msg; @Instance public static Main instance; @Mod.EventHandler public void init(FMLInitializationEvent event) { MinecraftForge.EVENT_BUS.register((Object)this); } @SubscribeEvent public void onDeath(final ClientChatReceivedEvent event) { this.msg = event.message.getUnformattedText(); if(this.msg.contains("Nostos")) { Minecraft.getMinecraft().thePlayer.playSound("zillexcm:sounds.jigglypuff", 3.5F, 0.2F); } } } Thanks!
-
[Unsolved] Trouble with sound...
Who would win, A well constructed forum or one bumpy boi
-
[Unsolved] Trouble with sound...
Didn't really help, thanks for the suggestion though.
-
[Unsolved] Trouble with sound...
Bump
-
[Unsolved] Trouble with sound...
Bump
-
[Unsolved] Trouble with sound...
oh it is 1.8.9 lol I just say 1.8 assuming everyone thinks 1.8.9
-
[Unsolved] Trouble with sound...
oh rip, I can't update because Im making this mod for someone
-
[Unsolved] Trouble with sound...
this is 1.8
-
[Unsolved] Trouble with sound...
okay, I'm starting to feel bad for asking all these noob questions but when I register the sound event like this: ResourceLocation location = new ResourceLocation("zillexcm", "jigglypuff"); SoundEvent soundevent = new SoundEvent(location); it gives this error: The constructor SoundEvent(ResourceLocation) is undefined again, sorry for all the noob questions
IPS spam blocked by CleanTalk.