aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/impl/FluidEntry.java
blob: d89002df2635310f2796d83ebfb67b21a39ffff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * Roughly Enough Items by Danielshe.
 * Licensed under the MIT License.
 */

package me.shedaniel.rei.impl;

import me.shedaniel.rei.api.Entry;
import net.minecraft.fluid.Fluid;
import net.minecraft.item.ItemStack;

import javax.annotation.Nullable;

public class FluidEntry implements Entry {
    private Fluid fluid;
    
    @Deprecated
    public FluidEntry(Fluid fluid) {
        this.fluid = fluid;
    }
    
    @Override
    public Type getEntryType() {
        return Type.FLUID;
    }
    
    @Nullable
    @Override
    public ItemStack getItemStack() {
        return null;
    }
    
    @Nullable
    @Override
    public Fluid getFluid() {
        return fluid;
    }
}