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

KururuLABO

Members
  • Content Count

    34
  • Joined

  • Last visited

Community Reputation

-1 Poor

About KururuLABO

  • Rank
    Tree Puncher

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!
  1. I very thanks so much. I has merged to my soure and it's working now. Thank you.
  2. AbstractPacket : public abstract class elAbstractPacket<REQ extends IMessage> implements IMessage, IMessageHandler<REQ, REQ>{ public abstract void readPacket(PacketBuffer buf); public abstract void sendPacket(PacketBuffer buf); public abstract void handleClientSide(REQ Message, EntityPlayer player); public abstract void handleServerSide(REQ message, EntityPlayer player); @Override public REQ onMessage(REQ message, MessageContext ctx) { if(ctx.side == Side.SERVER) handleServerSide(message, Endless.proxy.getPlayerEntity(ctx)); else handleClientSide(message, Endless.prox
  3. I just getting only getPlayerEntity method from coolaliases so i can't print anything when print mc.thePlayer at client proxy. Source will exception that place.
  4. Hi, I try to making a little mod. but i have problem. When i call get playerEntity from ClientProxy it's will return null exception. Client Proxy : public class ClientProxy extends CommonProxy{ private final Minecraft mc = Minecraft.getMinecraft(); @Override public EntityPlayer getPlayerEntity(MessageContext ctx) { return (ctx.side.isClient() ? (EntityPlayer) mc.thePlayer : super.getPlayerEntity(ctx)); } } Call with @Override public IMessage onMessage(REQ message, MessageContext ctx) { if(ctx.side == Side.SERVER) handleServerSide(message, TestMod.proxy.getPlaye
  5. public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer entityplayer, int a, float b, float x, float y){ TileEntityiTrade tileEntity = (TileEntityiTrade) world.getBlockTileEntity(i, j, k); if (tileEntity == null) return false; entityplayer.openGui(iCraftMain.instance, 1, world, i, k, k); return true; } Gui Handler package iCraft.Gui; import iCraft.Client.EnumGui; import iCraft.Packet.Handler.TileEntityiTrade; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.Wor
  6. How to get world. isRemote = false? I try the code on my blog but I get a value is true
  7. thx all reply. now i can get username in server How to : i use modloader.getinstance.thePlayer.username(); in client and send packet to server
  8. thx all reply. now i can get username in server How to : i use modloader.getinstance.thePlayer.username(); in client and send packet to server
  9. I need way to get username in server (same ModLoader.getMinecraftInstance().thePlayer.username; but this sideclient only)
  10. I need way to get username in server (same ModLoader.getMinecraftInstance().thePlayer.username; but this sideclient only)
  11. Client ByteArrayOutputStream var4; DataOutputStream var5; try { var4 = new ByteArrayOutputStream(); var5 = new DataOutputStream(var4); byte[] data3=getemail.getBytes("UTF-8"); var5.writeInt(data3.length); var5.write(data3); Packet250CustomPayload var6 = new Packet250CustomPayload("iServerPacket", var4.toByteArray()); PacketDispatcher.sendPacketToServer(var6); } catch(Exception var7) { var7.printStackTrace(); } Packet Handing public void o
  12. yes. sorry for question. ps.i m not good at English but i'll try to learn this
  13. I will make mod Open Gui then playerLoggedIn. But gui can't show then logged Source iMain : iConnectionHandler : EnumGui : iCommonProxy : iClientProxy :
  14. yes in mymod.zip already have mcmod.info if i insert mymod in minecraft.jar will get this error
  15. i use minecraftforge 1.4.4 and 1.4.5 1.4.4 = minecraftforge-universal-6.3.0.372 [Recommended] 1.4.5 = minecraftforge-universal-1.4.5-6.4.0.0397 [Recommended] then reofuscate and install in %appdata% i get this error if i run in eclipse source can use.
×
×
  • Create New...

Important Information

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