Class ItemStackMixin
java.lang.Object
net.ntrdeal.realapi.mixin.component.ItemStackMixin
- All Implemented Interfaces:
net.minecraft.core.component.DataComponentGetter, net.minecraft.core.component.DataComponentHolder, net.minecraft.core.TypedInstance<net.minecraft.world.item.Item>, net.minecraft.world.item.ItemInstance, RealMixin<net.minecraft.world.item.ItemStack>, ClassToTypeHolder
public abstract class ItemStackMixin
extends Object
implements net.minecraft.core.component.DataComponentHolder, net.minecraft.world.item.ItemInstance, ClassToTypeHolder, RealMixin<net.minecraft.world.item.ItemStack>
-
Field Summary
Fields inherited from interface net.minecraft.world.item.ItemInstance
FIELD_COMPONENTS, FIELD_COUNT, FIELD_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanisEmpty()<T> voidrunAllOfClass(Class<? extends T> clazz, Consumer<T> consumer) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.core.component.DataComponentGetter
getTypedMethods inherited from interface net.minecraft.core.component.DataComponentHolder
get, getAllOfType, getComponents, getOrDefault, hasMethods inherited from interface net.minecraft.world.item.ItemInstance
count, getMaxStackSizeMethods inherited from interface net.minecraft.core.TypedInstance
is, is, is, is, is, tags, typeHolder
-
Constructor Details
-
ItemStackMixin
public ItemStackMixin()
-
-
Method Details
-
isEmpty
public abstract boolean isEmpty() -
runAllOfClass
- Specified by:
runAllOfClassin interfaceClassToTypeHolder
-