use of com.almuradev.almura.shared.capability.impl.SingleSlotItemHandler in project Almura by AlmuraDev.
the class CacheBlock method createNewTileEntity.
@Nullable
@Override
public TileEntity createNewTileEntity(World worldIn, int meta) {
final SingleSlotTileEntity cte = new SingleSlotTileEntity();
final ISingleSlotItemHandler itemHandler = (ISingleSlotItemHandler) cte.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);
((SingleSlotItemHandler) itemHandler).setSlotLimit(this.slotLimit);
return cte;
}
Aggregations