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

Meldexun

Members
  • Content Count

    184
  • Joined

  • Last visited

Everything posted by Meldexun

  1. Now I created a MessageHandlerBDDummy class and I'm calling this in my ServerProxy BetterDiving.INSTANCE.registerMessage(MessageHandlerBDDummy.class, MessageBD.class, 0, Side.SERVER); The MessageHandlyerBDDummy class isn't doing something when receiving a packet. And everything seems to work know. Thank you for the help. If there is a better way of solving my issue you can say it.
  2. Ok, I now registered the Packet in my ClientProxy public class ClientProxy implements CommonProxy { @Override public void init() { BetterDiving.INSTANCE.registerMessage(MessageHandlerBD.class, MessageBD.class, 0, Side.CLIENT); } } But once i switch armor on a server nothing happens and on the server i get this message: Undefined discriminator for message type MessageBD in channel better_diving
  3. Ok. I feel like that was pretty obvious. Thanks for the help. But I don't know what you mean with that.
  4. I also thought that the getServerHandler isn't working on client side. But how can I access the Player object on the client side?
  5. I tried sending a packet and it is recieved on the client. public class MessageHandlerBD implements IMessageHandler<MessageBD, IMessage> { @Override public IMessage onMessage(MessageBD messageBD, MessageContext ctx) { System.out.println("PACKET"); return null; } } But instead of just writing PACKET in the client log, I want to do something with my Capability on the client side. But when i try it the game always is crashing @Override public IMessage onMessage(MessageBD messageBD, MessageContext ctx) { ctx.getServerHandler().player.getCapability(DiveSpeedProvider.DI
  6. I need to execute some code when the player switches his armor. But the LivingEquipmentChangeEvent is only server side and i need to do my stuff client side. So is there a way to run my stuff client side when the LivingEquipmentChangeEvent is fired?
  7. Oh. That was all Thank you for the help. Didn't thought it is that simple.
  8. Then it selects the same part of my texture. The dark blue rectangle(8x12) is selected for the front of my rectangle. It always selects a 8x12 rectangle for the front. I can icrease the size of my complete texture from 64x32 to 128x64 but it still just selects the 8x12 dark blue part.
  9. Hi there, I created my own armor and I made a custom model for my armor. But now I want to have a higher resolution texture on my model. As an example I have a 8x12x4 rectangle and we look at one 8x12 side of this rectangle. Now I want a 16x24 texture rendered on this side. But how can I do this? This is my model class: public class CustomArmorModel extends ModelBiped { ModelRenderer customBodyModel; public CustomArmorModel(float scale) { super(scale, 0, 512, 512); customBodyModel = new ModelRenderer(this, 64, 128); customBodyModel.addBox(0F, 0F, 0F, 8, 12, 4, 0.0
×
×
  • Create New...

Important Information

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