Class BundleSizeEvent

java.lang.Object
net.neoforged.bus.api.Event
petrolpark.mc.library.core.world.item.bundle.BundleSizeEvent
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent

public class BundleSizeEvent extends net.neoforged.bus.api.Event implements net.neoforged.bus.api.ICancellableEvent
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.commons.lang3.math.Fraction
     
    protected final net.minecraft.world.item.ItemStack
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BundleSizeEvent(net.minecraft.world.item.ItemStack stack)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.commons.lang3.math.Fraction
     
    net.minecraft.world.item.ItemStack
     
    void
    setSize(org.apache.commons.lang3.math.Fraction size)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.neoforged.bus.api.ICancellableEvent

    isCanceled, setCanceled
  • Field Details

    • size

      protected org.apache.commons.lang3.math.Fraction size
    • stack

      protected final net.minecraft.world.item.ItemStack stack
  • Constructor Details

    • BundleSizeEvent

      public BundleSizeEvent(net.minecraft.world.item.ItemStack stack)
  • Method Details

    • getSize

      public org.apache.commons.lang3.math.Fraction getSize()
    • setSize

      public void setSize(org.apache.commons.lang3.math.Fraction size)
    • getStack

      public net.minecraft.world.item.ItemStack getStack()