mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-05-19 08:01:23 +02:00
36 lines
1.1 KiB
Java
36 lines
1.1 KiB
Java
/*
|
|
* 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;
|
|
|
|
import net.neoforged.neoforge.items.IItemHandler;
|
|
|
|
public class SlotlessableItemHandlerWrapper {
|
|
//TODO: Check if we need this wrapper at all? The previous implementation used CommonCapabilities ISlotlessItemhandler
|
|
|
|
private final IItemHandler normalHandler;
|
|
@Deprecated
|
|
private final Object slotlessHandler;
|
|
|
|
public SlotlessableItemHandlerWrapper(IItemHandler normalHandler, Object slotlessHandler) {
|
|
this.normalHandler = normalHandler;
|
|
this.slotlessHandler = slotlessHandler;
|
|
}
|
|
|
|
public IItemHandler getNormalHandler() {
|
|
return this.normalHandler;
|
|
}
|
|
|
|
@Deprecated
|
|
public Object getSlotlessHandler() {
|
|
return this.slotlessHandler;
|
|
}
|
|
}
|