A ScreenHandler method for processing the logic of inventory slots changes. #2404
-
I have a ScreenHandler. The onSlotClick method processes the logic of my BlockEntity container. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You don't really explain what you are doing. Usually, you handle different behaviours by creating special Slot implementations. Find a vanilla BlockEntity that does something similar to what you are trying to do and see what it does with its slots. |
Beta Was this translation helpful? Give feedback.
You don't really explain what you are doing.
"Processes the logic of my BlockEntity container" is too vague.
Usually, you handle different behaviours by creating special Slot implementations.
e.g. Look at BrewingStandScreenHandler that has FuelSlot, IngredientSlot and PotionSlots inner classes.
Find a vanilla BlockEntity that does something similar to what you are trying to do and see what it does with its slots.