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

36 lines
1.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;
2024-03-04 20:21:48 +01:00
import net.neoforged.neoforge.items.IItemHandler;
2019-05-02 09:10:29 +02:00
public class SlotlessableItemHandlerWrapper {
2024-03-04 20:21:48 +01:00
//TODO: Check if we need this wrapper at all? The previous implementation used CommonCapabilities ISlotlessItemhandler
2024-03-04 20:21:48 +01:00
private final IItemHandler normalHandler;
2024-03-13 01:02:49 +01:00
@Deprecated
private final Object slotlessHandler;
2024-03-04 20:21:48 +01:00
public SlotlessableItemHandlerWrapper(IItemHandler normalHandler, Object slotlessHandler) {
this.normalHandler = normalHandler;
this.slotlessHandler = slotlessHandler;
}
2024-03-04 20:21:48 +01:00
public IItemHandler getNormalHandler() {
return this.normalHandler;
}
2024-03-13 01:02:49 +01:00
@Deprecated
2019-05-02 09:10:29 +02:00
public Object getSlotlessHandler() {
return this.slotlessHandler;
}
}