ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/util/compat/SlotlessableItemHandlerWrapper.java

34 lines
1 KiB
Java
Raw Normal View History

/*
2017-02-04 16:48:22 +01:00
* This file ("SlotlessableItemHandlerWrapper.java") is part of the Actually Additions mod for Minecraft.
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
* http://ellpeck.de/actaddlicense
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
* © 2015-2017 Ellpeck
*/
package de.ellpeck.actuallyadditions.mod.util.compat;
2021-02-27 16:33:00 +01:00
import net.minecraftforge.common.util.LazyOptional;
import net.minecraftforge.items.IItemHandler;
2019-05-02 09:10:29 +02:00
public class SlotlessableItemHandlerWrapper {
2021-02-27 16:33:00 +01:00
private final LazyOptional<IItemHandler> normalHandler;
private final Object slotlessHandler;
2021-02-27 16:33:00 +01:00
public SlotlessableItemHandlerWrapper(LazyOptional<IItemHandler> normalHandler, Object slotlessHandler) {
this.normalHandler = normalHandler;
this.slotlessHandler = slotlessHandler;
}
2021-02-27 16:33:00 +01:00
public LazyOptional<IItemHandler> getNormalHandler() {
return this.normalHandler;
}
2019-05-02 09:10:29 +02:00
public Object getSlotlessHandler() {
return this.slotlessHandler;
}
}