Class FluidHandlerItemStackSimple.SwapEmpty

    • Field Detail

      • emptyContainer

        protected final ItemStack emptyContainer
    • Constructor Detail

      • SwapEmpty

        public SwapEmpty​(ItemStack container,
                         ItemStack emptyContainer,
                         int capacity)
    • Method Detail

      • setContainerToEmpty

        protected void setContainerToEmpty()
        Description copied from class: FluidHandlerItemStackSimple
        Override this method for special handling. Can be used to swap out the container's item for a different one with "container.setItem". Can be used to destroy the container with "container.stackSize--"
        Overrides:
        setContainerToEmpty in class FluidHandlerItemStackSimple