Comments (4)
That function isn't for checking if an ore exists, it's more a "get me a new ID for this name, or give me the existing one, if it already has one."
If you want to check an ore name exists, call getOreNames() and look in the returned array.
from minecraftforge.
Ok thanks it just seems weird that a get call is making a new entry with an empty ItemStack
from minecraftforge.
It's a bit like the old Properties functions in that it provides getOrCreate* functionality. (I'll admit I was a bit curious about the naming choice, too. ;))
from minecraftforge.
Ok thanks :)
from minecraftforge.
Related Issues (20)
- World gen stucks at 100% HOT 1
- [1.20.4] ClasspathLocator is no longer disabled in production env, causing OptiFine to crash while installing in the classpath HOT 3
- Shears on trapwire drops string instead of deactivating it HOT 1
- Item method shouldCauseBlockBreakReset does not work when itemStack::hurt HOT 2
- "Saving World" is not rendered with Forge
- Some "Falling Blocks" are not rendered with the "Fabulous!" mode.
- `java.lang.IllegalStateException: Duplicate key` in github action build with `Task :reobfJar`
- [Bug] Minecraft version json file offer a wrong value of path HOT 1
- [1.20.1] `forge_data` Rendering Bugs
- java.lang.IllegalStateException: renderisystem called from wrong thread HOT 1
- trying to fix local lan on minecraft modpack, could use some help. HOT 1
- Data Packs forget they are enabled, or get loaded in the wrong order
- Forge 47.2.0 is incompatible with GraalVM HOT 3
- world/serverconfig configs keep resetting to default every time after restart, how can I disable this? HOT 1
- Minecraft
- [1.20.6] Can't open villager GUI
- [1.20.6] `EventNetworkChannel` not working HOT 1
- [SECURITY] Vulnerabilities in Forge 47.2.X HOT 1
- [1.20.6] ATs still use SRG mappings HOT 1
- Vault Block crash in 1.20.6 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minecraftforge.