Jump to content

Animefan8888

Forge Modder
  • Posts

    6157
  • Joined

  • Last visited

  • Days Won

    59

Everything posted by Animefan8888

  1. Also I don't think your Packets are Thread safe...you need to schedule a task.
  2. In your handleClientSide method you need to access the value and change it to the one you save in the toBytes method and you also need to read it from the fromBytes method.
  3. No it is not, you can use an IBakedModel and add the BakedQuads of the item you want to add to the rendering ones. This is because TESRs draw themselves to the screen every single frame. Only if they where placed close together, and not done efficiently.
  4. Ok...now that I see the AbstractPacket class I understand what he was doing, I thought it was a vanilla class. I.e., in the package there's nothing to add? Look at loordgek's post for an example of what you are doing specifically.
  5. That is explained in the link I sent you. OK, I will ask then as I through the pack to pass to the client player IStamina values? The SimpleNetworkWrapper field you created has methods for sending packets you want SimpleNetworkWrapper#sendTo(IMessage, EntityPlayer) which will send the data to the specific player. I know how to send! How send do I stamina to pass the data inside the package? new StaminaUpdateMessage(stamina);
  6. He isn't doing it to just his own Blocks. Edit: Also I do not believe that IBlockColor can add a "tint", or transparent layer.
  7. That is explained in the link I sent you. OK, I will ask then as I through the pack to pass to the client player IStamina values? The SimpleNetworkWrapper field you created has methods for sending packets you want SimpleNetworkWrapper#sendTo(IMessage, EntityPlayer) which will send the data to the specific player.
  8. Using packets. http://www.minecraftforge.net/forum/index.php?topic=20135.0
  9. I mean that the max changes when in a different dimension. E.g. 32 in the Overworld 512 in the Nether. How would you handle the damage being greater than the durability, ie i am in the nether i use it more than 32 and then travel to the overworld? But you could do this through Item#getMaxDamage() and a capability that holds the dimension id the holder is in, which can be updated before it takes damage.
  10. It has a canExtract and canReceive methods use them.
  11. I think it depends on wht you mean by change the durability. Do you mean it will have separate durability amounts in different dimensions or that the the max changes when inside different dimensions?
  12. A predicate is a functional interface. It has one method a boolean, and i assume in this context it would be if the enchantment type can be applied to the item passed.
  13. When you say you want to add a transparent tint over the block, when do you want to do this? Is there any example you could give?
  14. So I should create a class for my ItemBlocks and set there the meta for each color? Yes assuming when you say color you mean it is going to have different Item models. Because you can always you IBlockColor.
  15. What that does is when a Blocks block state has the EnumDyeColor as a PropertyEnum on it, changes the color/state of the block.
  16. That returns the correct block, your problem is that you are not considering metadata.
  17. The bed and door don't have ItemBlocks associated with them, if you want to get the ItemStack associated with a Block call Block#getPickBlock().
  18. "#"'s are not used in Java for any actual programming. They are used to denote that what comes after it is a method and is not static so no confusion comes. AKA EntityLivingBase.addPotionEffect(...) is different from EntityLivingBase living = ... living.addPotionEffect(...)
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.