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

KururuLABO

Members
  • Content Count

    34
  • Joined

  • Last visited

Everything posted by KururuLABO

  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.
  16. i make a dimension and dimension. But i enter to my dimension and First generate first chunk and get this error Bug in ChunkProviderMyDimension at generateTerrain i try use Block.stone can use and no error This log if i use myBlock.mystone can use and no error get this error Log My block code in load BlockiStone
  17. i make a dimension and dimension can use. But i enter to my dimension and First generate first chunk and get this error
  18. i want to expanded inventory for ring glove earing or etc but i don't know how do
  19. I need to write my source. but i don't know how to use getBlockTextureFromside. I know only Modloader.
  20. I would like to know how install forge on craftbukkit++ in 1.3.2 mcportcentral no updated. so i want install forge in 1.3.2 or 1.4.2
  21. I want to make protect area mod same protect area plugin in bukkit. but i need make mod for vanilla server . i need some source code for make or approach.
  22. thx sanandreap i not understand how to use this code ps.i use this code in gui for transfer player to dimension
  23. um... but i want function mc.useportal i try write source item for useportal by right click
×
×
  • Create New...

Important Information

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