Interface ItemAccessor<Target>
- All Known Implementing Classes:
BlockItemAccessor, EntityItemAccessor
public interface ItemAccessor<Target>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintgetModifySuccess(CommandSourceStack source, CommandResponseTracker<Target> tracker) intgetReplaceSuccess(CommandSourceStack source, CommandResponseTracker<Target> tracker, @Nullable ItemStack knownItem) getSlots(CommandSourceStack source, SlotSource slotSource) voidsetItems(CommandSourceStack source, SlotSource slotSource, ItemAccessor.SetterFunction<Target> function)
-
Method Details
-
setItems
void setItems(CommandSourceStack source, SlotSource slotSource, ItemAccessor.SetterFunction<Target> function) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getSlots
SlotCollection getSlots(CommandSourceStack source, SlotSource slotSource) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getReplaceSuccess
int getReplaceSuccess(CommandSourceStack source, CommandResponseTracker<Target> tracker, @Nullable ItemStack knownItem) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getModifySuccess
int getModifySuccess(CommandSourceStack source, CommandResponseTracker<Target> tracker) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-