Entry.java 697 B

1234567891011121314151617181920212223242526272829303132
  1. package me.shedaniel.rei.api;
  2. import me.shedaniel.rei.client.FluidEntry;
  3. import me.shedaniel.rei.client.ItemStackEntry;
  4. import net.minecraft.fluid.Fluid;
  5. import net.minecraft.item.ItemStack;
  6. import javax.annotation.Nullable;
  7. public interface Entry {
  8. @SuppressWarnings("deprecation")
  9. static Entry create(ItemStack itemStack) {
  10. return new ItemStackEntry(itemStack);
  11. }
  12. @SuppressWarnings("deprecation")
  13. static Entry create(Fluid fluid) {
  14. return new FluidEntry(fluid);
  15. }
  16. Type getEntryType();
  17. @Nullable
  18. ItemStack getItemStack();
  19. @Nullable
  20. Fluid getFluid();
  21. public static enum Type {
  22. ITEM, FLUID
  23. }
  24. }