Uses of Record Class
net.neoforged.neoforge.fluids.FluidStackTemplate
Packages that use FluidStackTemplate
-
Uses of FluidStackTemplate in net.neoforged.neoforge.fluids
Fields in net.neoforged.neoforge.fluids with type parameters of type FluidStackTemplateModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<FluidStackTemplate> FluidStackTemplate.CODECstatic final com.mojang.serialization.MapCodec<FluidStackTemplate> FluidStackTemplate.MAP_CODECstatic final StreamCodec<RegistryFriendlyByteBuf, FluidStackTemplate> FluidStackTemplate.STREAM_CODECMethods in net.neoforged.neoforge.fluids that return FluidStackTemplateModifier and TypeMethodDescriptionstatic FluidStackTemplateFluidStackTemplate.fromNonEmptyStack(FluidStack stack) FluidStackTemplate.withAmount(int amount) Methods in net.neoforged.neoforge.fluids that return types with arguments of type FluidStackTemplateModifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec<FluidStackTemplate> FluidStackTemplate.fixedAmountCodec(int amount) FluidStackTemplate.fixedAmountStreamCodec(int amount) Methods in net.neoforged.neoforge.fluids with parameters of type FluidStackTemplateModifier and TypeMethodDescriptionstatic booleanFluidStack.isSameFluid(FluidStack a, @Nullable FluidStackTemplate b) Returns true if a and b refer to the same fluid, or if a is empty and b is null.static booleanFluidStack.isSameFluidSameComponents(FluidStack a, @Nullable FluidStackTemplate b) Compares the fluid and components of this stack against aFluidStackTemplate.static booleanFluidStack.matches(FluidStack a, @Nullable FluidStackTemplate b) Compares a fluidstack with aFluidStackTemplateas perFluidStack.matches(FluidStack, FluidStack). -
Uses of FluidStackTemplate in net.neoforged.neoforge.transfer.fluid
Methods in net.neoforged.neoforge.transfer.fluid with parameters of type FluidStackTemplateModifier and TypeMethodDescriptionbooleanFluidResource.matches(@Nullable FluidStackTemplate template) Returns true if this resource matches the fluid and components of the passed template.static FluidResourceFluidResource.of(@Nullable FluidStackTemplate template) Creates a FluidResource using the default or copy of the passed in fluid stack.