Class ItemStackMixinCast_ItemStackChecker
java.lang.Object
org.samo_lego.golfiv.mixin.illegal_items.ItemStackMixinCast_ItemStackChecker
- All Implemented Interfaces:
ItemStackChecker
public abstract class ItemStackMixinCast_ItemStackChecker
extends Object
implements ItemStackChecker
Additional methods for checking ItemStack's legality.
-
Field Summary
Fields inherited from interface org.samo_lego.golfiv.casts.ItemStackChecker
BLOCK_ENTITY_TAG_KEY, UNLUCK
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract net.minecraft.nbt.NbtList
abstract net.minecraft.item.Item
getItem()
abstract int
void
makeLegal
(boolean survival) Sets the appropriate ItemStack size, removes disallowed enchantments.abstract void
removeSubNbt
(String key) abstract void
setCount
(int count)
-
Constructor Details
-
ItemStackMixinCast_ItemStackChecker
public ItemStackMixinCast_ItemStackChecker()
-
-
Method Details
-
getEnchantments
public abstract net.minecraft.nbt.NbtList getEnchantments() -
getMaxCount
public abstract int getMaxCount() -
setCount
public abstract void setCount(int count) -
removeSubNbt
-
getItem
public abstract net.minecraft.item.Item getItem() -
makeLegal
public void makeLegal(boolean survival) Sets the appropriate ItemStack size, removes disallowed enchantments.- Specified by:
makeLegal
in interfaceItemStackChecker
- Parameters:
survival
- w
-