Everything posted by Draco18s
-
Editing Capability Values
You're going to need to provide more detail and/or code.
-
[1.12.2] Multiple Capabilities
A factory is a class that creates instances of another class. (What is a hammer factory? Why, its a building that builds hammers...) https://en.wikipedia.org/wiki/Factory_method_pattern
-
Reflection making items invisible?
You're likely doing something wrong. You should stop doing it wrong.
-
Help with item texture/model.
Why is #layer0 here? This is causing the game to look for a file named testitem#layer0.json which presumably doesn't exist.
-
Textures won't load
Read your error:
-
Need a lille help
Also, you're using the arrow anti-pattern.
-
[1.12.2] Multiple Capabilities
Here, take a look at these three classes: https://github.com/Draco18s/ReasonableRealism/tree/1.12.1/src/main/java/com/draco18s/hardlib/api/capability The interface is here: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/api/interfaces/IMechanicalPower.java
-
Is a IExtendedEntityProperty removeable?
You should be using Capabilities, if you aren't on a version of Minecraft with Capabilities, update. As to your question: there is no Forge-supplied action that will do what you are asking.
-
[1.12] Forge blockstate changes?
It works just fine...if you tell Minecraft how to render the item. ModelLoader.setCustomModelResourceLocation(item, meta, resource)
-
Crash upon loading Jar java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
Read your errors. Also, without your code, we can do fuckall to help you.
-
[1.12]Positive and Negative axes rotation
Look at the dispenser.
-
[1.12]Positive and Negative axes rotation
If I understood your question correctly: Yes. But I can't tell you more because I don't know WTF you're trying to do. Also: "Whether." The weather is about whether or not you need an umbrella.
-
Code causes short lag
It's called "threads." And treads are dangerous things.
-
Viewing Source Code of a Mod
Option 1: See if they have a github Option 2: Use JD-GUI
-
ItemStackHandler insert check isItemValid
You should not be using the slot to check validity, you should have some ability outside of the inventory and slot classes to check validity. The reason the slot class has an isValid check is so that the client cannot click a stack into the slot and can make that determination without requesting any information from the server.
-
ItemStackHandler insert check isItemValid
If the item isn't allowed, return the input stack unaltered. https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/ores/entities/capabilities/SiftableItemsHandler.java#L14-L17
-
drawTexturedModalRect draws only 1/4th of the gui
Minecraft assumes that all gui textures are 256x256 unless otherwise specified. 64/256 = 0.25
-
The system cannot find the path specified. Error: could not find or load main class org.gradle.wrapper.GradleWrapperMain
Try gradlew.bat instead of just gradlew.
-
Register Capabilities
default implementation factory It would return an instance of the implementation.
-
Register Capabilities
A factory is just a class that constructs an instance of something else. It has common parameters and returns an arbitrary object without the need for reflection.
-
[1.12.2] Blockstate JSON values based on multiple variables.
Those are vanilla style variant listings, which means they need to be alphabetical. active=false,style=red
-
1.12.2 Particles
- 1.12.2 Particles
So, what's not working?- Register Blocks with Enum still not fixed
You don't need that line. I only highlighted lines 65 through 71, that was from line 64.- Register Blocks with Enum still not fixed
That should work. You still need to invoke that method of course, but it looks correct. And it needs to be client-side-only, as does all other model registration code. - 1.12.2 Particles
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.