Class FluidIngredient
java.lang.Object
info.u_team.u_team_core.ingredient.FluidIngredient
- All Implemented Interfaces:
Predicate<net.minecraftforge.fluids.FluidStack>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
static class
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FluidIngredient
(int amount, Stream<? extends FluidIngredient.IFluidList> stream) -
Method Summary
Modifier and TypeMethodDescriptionstatic FluidIngredient
deserialize
(com.google.gson.JsonElement jsonElement) protected static FluidIngredient.IFluidList
deserializeFluidList
(com.google.gson.JsonObject jsonObject) static FluidIngredient
fromFluids
(int amount, net.minecraft.world.level.material.Fluid... fluids) static FluidIngredient
fromStacks
(int amount, net.minecraftforge.fluids.FluidStack... stacks) static FluidIngredient
fromTag
(int amount, net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag) int
static FluidIngredient
read
(net.minecraft.network.FriendlyByteBuf buffer) com.google.gson.JsonElement
boolean
test
(net.minecraftforge.fluids.FluidStack stack) void
write
(net.minecraft.network.FriendlyByteBuf buffer)
-
Field Details
-
EMPTY
-
-
Constructor Details
-
FluidIngredient
-
-
Method Details
-
fromFluids
public static FluidIngredient fromFluids(int amount, net.minecraft.world.level.material.Fluid... fluids) -
fromStacks
public static FluidIngredient fromStacks(int amount, net.minecraftforge.fluids.FluidStack... stacks) -
fromTag
public static FluidIngredient fromTag(int amount, net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> tag) -
test
public boolean test(net.minecraftforge.fluids.FluidStack stack) -
getAmount
public int getAmount() -
write
public void write(net.minecraft.network.FriendlyByteBuf buffer) -
read
-
serialize
public com.google.gson.JsonElement serialize() -
deserialize
-
deserializeFluidList
protected static FluidIngredient.IFluidList deserializeFluidList(com.google.gson.JsonObject jsonObject)
-