Class BundleLike<T extends StackHolder<T>>
java.lang.Object
net.ntrdeal.realapi.item.stack_holder.BundleLike<T>
- All Implemented Interfaces:
net.minecraft.world.inventory.tooltip.TooltipComponent, StackHolder<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBundleLike(List<net.minecraft.world.item.ItemStackTemplate> stacks, double scale, int index) BundleLike(List<net.minecraft.world.item.ItemStackTemplate> stacks, org.apache.commons.lang3.math.Fraction scale, int index) -
Method Summary
Methods inherited from interface StackHolder
build, builder, canInsert, computeMyWeight, computeWeight, getHash, getNumberOfItemsToShow, getPerWeight, getSelectedItem, getString, getThis, getWeight, isEmpty, isEqualToHolder, maxStackSize, overrideWeight, size, stackStream, weight
-
Field Details
-
weight
public final Supplier<com.mojang.serialization.DataResult<org.apache.commons.lang3.math.Fraction>> weight -
stacks
-
scale
public final org.apache.commons.lang3.math.Fraction scale -
index
public final int index
-
-
Constructor Details
-
BundleLike
public BundleLike(List<net.minecraft.world.item.ItemStackTemplate> stacks, org.apache.commons.lang3.math.Fraction scale, int index) -
BundleLike
-
-
Method Details
-
stacks
- Specified by:
stacksin interfaceStackHolder<T extends StackHolder<T>>
-
scale
public org.apache.commons.lang3.math.Fraction scale()- Specified by:
scalein interfaceStackHolder<T extends StackHolder<T>>
-
weightSupplier
public Supplier<com.mojang.serialization.DataResult<org.apache.commons.lang3.math.Fraction>> weightSupplier()- Specified by:
weightSupplierin interfaceStackHolder<T extends StackHolder<T>>
-
index
public int index()- Specified by:
indexin interfaceStackHolder<T extends StackHolder<T>>
-
equals
-
hashCode
-
toString
-