2017-02-04 14:12:17 +01:00
|
|
|
/*
|
2017-02-04 16:48:22 +01:00
|
|
|
* This file ("SlotlessableItemHandlerWrapper.java") is part of the Actually Additions mod for Minecraft.
|
2017-02-04 14:12:17 +01:00
|
|
|
* 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;
|
2017-02-04 14:12:17 +01:00
|
|
|
|
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
|
2017-02-04 14:12:17 +01:00
|
|
|
|
2024-03-04 20:21:48 +01:00
|
|
|
private final IItemHandler normalHandler;
|
2024-03-13 01:02:49 +01:00
|
|
|
@Deprecated
|
2017-02-04 14:12:17 +01:00
|
|
|
private final Object slotlessHandler;
|
|
|
|
|
2024-03-04 20:21:48 +01:00
|
|
|
public SlotlessableItemHandlerWrapper(IItemHandler normalHandler, Object slotlessHandler) {
|
2017-02-04 14:12:17 +01:00
|
|
|
this.normalHandler = normalHandler;
|
|
|
|
this.slotlessHandler = slotlessHandler;
|
|
|
|
}
|
|
|
|
|
2024-03-04 20:21:48 +01:00
|
|
|
public IItemHandler getNormalHandler() {
|
2017-02-04 14:12:17 +01:00
|
|
|
return this.normalHandler;
|
|
|
|
}
|
|
|
|
|
2024-03-13 01:02:49 +01:00
|
|
|
@Deprecated
|
2019-05-02 09:10:29 +02:00
|
|
|
public Object getSlotlessHandler() {
|
2017-02-04 14:12:17 +01:00
|
|
|
return this.slotlessHandler;
|
|
|
|
}
|
|
|
|
}
|