-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
[1.10.2] How to update progress bar(Custom abilities)
Animefan8888 replied to WildHeart's topic in Modder Support
Also I don't think your Packets are Thread safe...you need to schedule a task. -
[1.10.2] How to update progress bar(Custom abilities)
Animefan8888 replied to WildHeart's topic in Modder Support
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. -
[1.10.2] How to update progress bar(Custom abilities)
Animefan8888 replied to WildHeart's topic in Modder Support
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. -
[1.10.2] How to update progress bar(Custom abilities)
Animefan8888 replied to WildHeart's topic in Modder Support
That is not what you are supposed to do... -
[1.10.2] How to update progress bar(Custom abilities)
Animefan8888 replied to WildHeart's topic in Modder Support
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); -
[1.11]Simplest way to render a "tint" over some block.
Animefan8888 replied to iAmRinzler's topic in Modder Support
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. -
[1.10.2] How to update progress bar(Custom abilities)
Animefan8888 replied to WildHeart's topic in Modder Support
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. -
[1.10.2] How to update progress bar(Custom abilities)
Animefan8888 replied to WildHeart's topic in Modder Support
That is explained in the link I sent you. -
[1.10.2] How to update progress bar(Custom abilities)
Animefan8888 replied to WildHeart's topic in Modder Support
Using packets. http://www.minecraftforge.net/forum/index.php?topic=20135.0 -
[1.10.2/1.11] Change Tool Durability Based On Dimension
Animefan8888 replied to LogicTechCorp's topic in Modder Support
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. -
[1.11] Differentiating Energy Producers/Receivers
Animefan8888 replied to Lambda's topic in Modder Support
It has a canExtract and canReceive methods use them. -
[1.10.2/1.11] Change Tool Durability Based On Dimension
Animefan8888 replied to LogicTechCorp's topic in Modder Support
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? -
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.
-
[1.11]Simplest way to render a "tint" over some block.
Animefan8888 replied to iAmRinzler's topic in Modder Support
I think you would need to use the RenderWorldLastEvent -
[1.11]Simplest way to render a "tint" over some block.
Animefan8888 replied to iAmRinzler's topic in Modder Support
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? -
I need some guidance registering Colors Blocks
Animefan8888 replied to American2050's topic in Modder Support
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. -
[1.11]Simplest way to render a "tint" over some block.
Animefan8888 replied to iAmRinzler's topic in Modder Support
What that does is when a Blocks block state has the EnumDyeColor as a PropertyEnum on it, changes the color/state of the block. -
I need some guidance registering Colors Blocks
Animefan8888 replied to American2050's topic in Modder Support
Because there is no meta for your ItemBlock. -
1.11 Messages don't translate outside of development environment.
Animefan8888 replied to Raycoms's topic in Modder Support
Why not just test it yourself? -
That returns the correct block, your problem is that you are not considering metadata.
-
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().
-
[1.10.2] Good place to learn about MCMultipart
Animefan8888 replied to KeeganDeathman's topic in Modder Support
Probably reading the JavaDoc of MCMultipart. -
Why not just look at BlockDoor?...
-
"#"'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(...)