Comments (5)
If this is intended, then I am unaware of how to collect all registered slot types from the client safely.
edit: does not happen in 1.20.1, so I assume it is not supposed to be null
It's intended, as slot types do not exist on the client as they do on the server. I'm not entirely sure why it doesn't happen on 1.20.1 since the code is the same, in that setSlotHelper
is only called on server start-up.
The question of how to get registered slot types safely on the client depends on what you need it for, and there are many potential solutions. Can you explain more about what your use-case is for these slot types?
from curios.
The question of how to get registered slot types safely on the client depends on what you need it for, and there are many potential solutions. Can you explain more about what your use-case is for these slot types?
I have an upgrade system where you can add attributes bonuses to equipment pieces, including curios. If a curio item is being upgraded, I need to know what slots the curio can be equipped in, to be handled in the CurioAttributeModifierEvent
later. Currently, I do that by iterating over SlotHelper#getSlotTypes
, checking if that slot is valid, then storing it in NBT if so.
from curios.
Would you be able to use ICuriosHelper#getCurioTags(Item)
for this? It returns a list of curio tags for the item that is passed in, which is effectively the same as the list of slot identifiers.
from curios.
That sounds like a good enough solution for now, hopefully there aren't many psychos with mismatching names
from curios.
You don't have to worry in that regard, as mismatched names wouldn't work to begin with: the tag has to match the identifier, otherwise it can't be equipped anywhere. It's actually what's used for the main validity checks.
from curios.
Related Issues (20)
- [Bug]: the game crashes with the last version of embeddium++ HOT 3
- [Bug]: Attempted to load a class for invalid dist DEDICATED_SERVER
- [Bug]: Latest Curios & EMI causes error loading EMI ? HOT 2
- [Feature]: Allow Datafixers to Run on Items in the Curios Inventory HOT 3
- [Bug]: Crash
- [Bug]: The game crashed when i die HOT 5
- [Bug]: Crash since Neoforge 20.6.78-beta
- [Bug]: Curios Causing "EMI experienced a critical exception while reloading, check log" HOT 2
- [Bug]: Held Inventory Item Deleted in 1.20.4+ NeoForge
- [Bug]: Diet Button Disappears When Using New Curios Menu HOT 1
- [Bug]: 20.6.113-BETA neoforge crash HOT 6
- Seo1raposo[Feature]:
- [Bug]: Singleplayer - Only first item for each slot is saved, others are lost after relogging
- [Bug]: Curios accessories do not show Quark's custom enchant glint HOT 5
- [Bug]: Blocks do not drop their loot tables after destroying HOT 2
- [Bug]: Accidental player corruption
- Discontinued as of 1.21
- [Bug]: kicks when equiping curios HOT 5
- [Bug]: While killing entities using better combat and Curios crashes server HOT 2
- [Feature]: Config option for always showing Curios on left of inventory HOT 1
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 curios.