Class PartOfferedEvent

java.lang.Object
alexiil.mc.lib.multipart.api.event.MultipartEvent
alexiil.mc.lib.multipart.api.event.PartOfferedEvent

public final class PartOfferedEvent extends MultipartEvent
Fired whenever an AbstractPart is offered or added to a MultipartContainer.
  • Field Details

  • Constructor Details

    • PartOfferedEvent

      public PartOfferedEvent(AbstractPart part)
  • Method Details

    • isAllowed

      public boolean isAllowed()
    • disallow

      public void disallow()
      Disallows this part from being added to the container.