Uses of Class
alexiil.mc.lib.attributes.fluid.volume.FluidKey
Package | Description |
---|---|
alexiil.mc.lib.attributes.fluid |
The base package for
fluid management. |
alexiil.mc.lib.attributes.fluid.filter | |
alexiil.mc.lib.attributes.fluid.impl | |
alexiil.mc.lib.attributes.fluid.item | |
alexiil.mc.lib.attributes.fluid.mixin.api | |
alexiil.mc.lib.attributes.fluid.volume |
-
Uses of FluidKey in alexiil.mc.lib.attributes.fluid
Methods in alexiil.mc.lib.attributes.fluid that return FluidKey Modifier and Type Method Description static FluidKey
FluidItemUtil. getContainedFluid(net.minecraft.item.ItemStack stack)
Retrieves the first fluid contained by the givenItemStack
.Methods in alexiil.mc.lib.attributes.fluid that return types with arguments of type FluidKey Modifier and Type Method Description java.util.Set<FluidKey>
GroupedFluidInvView. getStoredFluids()
Methods in alexiil.mc.lib.attributes.fluid with parameters of type FluidKey Modifier and Type Method Description default FluidVolume
FluidExtractable. extract(FluidKey filter, int maxAmount)
Deprecated.Replaced byFluidExtractable.extract(FluidKey, FluidAmount)
default FluidVolume
FluidExtractable. extract(FluidKey filter, FluidAmount maxAmount)
default int
GroupedFluidInvView. getAmount(FluidKey fluid)
Deprecated.Replaced byGroupedFluidInvView.getAmount_F(FluidKey)
default FluidAmount
GroupedFluidInvView. getAmount_F(FluidKey fluid)
default int
GroupedFluidInvView. getCapacity(FluidKey fluid)
Deprecated.Replaced byGroupedFluidInvView.getCapacity_F(FluidKey)
default FluidAmount
GroupedFluidInvView. getCapacity_F(FluidKey fluid)
static java.util.Set<net.minecraft.item.Item>
FluidContainerRegistry. getFullContainersFor(FluidKey fluid)
Retrieves everyItem
that has been registered withFluidContainerRegistry.mapContainer(Item, Item, FluidVolume)
as a direct container that is full of the specified fluid.default LimitedGroupedFluidInv.FluidLimitRule
LimitedGroupedFluidInv. getRule(FluidKey key)
default int
GroupedFluidInvView. getSpace(FluidKey fluid)
Deprecated.Replaced byGroupedFluidInvView.getSpace_F(FluidKey)
default FluidAmount
GroupedFluidInvView. getSpace_F(FluidKey fluid)
default GroupedFluidInvView.FluidInvStatistic
GroupedFluidInvView. getStatistics(FluidKey filter)
boolean
FixedFluidInv. isFluidValidForTank(int tank, FluidKey fluid)
Checks to see if the given fluid would be valid for this tank, ignoring current contents.boolean
FixedFluidInvView. isFluidValidForTank(int tank, FluidKey fluid)
Checks to see if the given fluid would be valid for this tank, ignoring current contents.boolean
SingleFluidTankView. isValid(FluidKey fluid)
void
FluidInvAmountChangeListener_F. onChange(GroupedFluidInvView inv, FluidKey fluid, FluidAmount previous, FluidAmount current)
void
FluidInvAmountChangeListener. onChange(GroupedFluidInvView inv, FluidKey fluid, int previous, int current)
Deprecated.static void
FluidContainerRegistry. registerFillHandler(net.minecraft.item.Item empty, FluidKey fluid, FluidAmount minimum, FluidAmount capacity, FluidContainerRegistry.FluidFillFunction fn)
Registers a custom fill handler for the given empty item, which always creates filledItemStack
s with differentItem
s to the original.static void
FluidContainerRegistry. registerFillHandler(net.minecraft.item.Item empty, FluidKey fluid, FluidContainerRegistry.FluidFillHandler handler)
Registers a custom fill handler for the given empty item, which always creates filledItemStack
s with differentItem
s to the original. -
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.filter
Fields in alexiil.mc.lib.attributes.fluid.filter declared as FluidKey Modifier and Type Field Description FluidKey
ExactFluidFilter. fluid
Methods in alexiil.mc.lib.attributes.fluid.filter that return types with arguments of type FluidKey Modifier and Type Method Description default java.util.function.Predicate<FluidKey>
FluidFilter. asPredicate()
static java.util.Set<FluidKey>
FluidFilterUtil. decomposeFilter(FluidFilter filter)
Attempts to decompose the given filter down into it's componentFluidKey
's, if it implementsReadableFluidFilter
.static java.util.Set<FluidKey>
FluidFilterUtil. findIntersection(FluidFilter filter, java.util.Set<FluidKey> set)
Finds the set ofFluidKey
s which are both in the set and match the given filter.static java.util.Set<FluidKey>
FluidFilterUtil. findIntersection(FluidFilter filter, java.util.Set<FluidKey> set, boolean resolve)
Finds the set ofFluidKey
s which are both in the set and match the given filter.java.util.Set<FluidKey>
FluidSetFilter. getFluids()
Methods in alexiil.mc.lib.attributes.fluid.filter with parameters of type FluidKey Modifier and Type Method Description boolean
AggregateFluidFilter. matches(FluidKey fluid)
boolean
ConstantFluidFilter. matches(FluidKey fluid)
boolean
ExactFluidFilter. matches(FluidKey other)
boolean
FluidFilter. matches(FluidKey fluidKey)
Checks to see if the given filter matches the given fluid key.boolean
FluidInsertableFilter. matches(FluidKey fluidKey)
boolean
FluidSetFilter. matches(FluidKey fluidKey)
boolean
FluidTagFilter. matches(FluidKey fluidKey)
boolean
FluidTypeFilter.FluidFloatingEntryFilter. matches(FluidKey fluid)
boolean
FluidTypeFilter.RawFluidFilter. matches(FluidKey fluid)
boolean
FluidTypeFilter.RegisteredTypeFilter. matches(FluidKey fluid)
boolean
InvertedFluidFilter. matches(FluidKey fluidKey)
boolean
RawFluidTagFilter. matches(FluidKey fluidKey)
default boolean
ResolvableFluidFilter. matches(FluidKey fluid)
Checks to see if the given filter matches the given fluid key.static ReadableFluidFilter
ExactFluidFilter. of(FluidKey fluid)
Method parameters in alexiil.mc.lib.attributes.fluid.filter with type arguments of type FluidKey Modifier and Type Method Description static java.util.Set<FluidKey>
FluidFilterUtil. findIntersection(FluidFilter filter, java.util.Set<FluidKey> set)
Finds the set ofFluidKey
s which are both in the set and match the given filter.static java.util.Set<FluidKey>
FluidFilterUtil. findIntersection(FluidFilter filter, java.util.Set<FluidKey> set, boolean resolve)
Finds the set ofFluidKey
s which are both in the set and match the given filter.Constructors in alexiil.mc.lib.attributes.fluid.filter with parameters of type FluidKey Constructor Description ExactFluidFilter(FluidKey fluid)
Creates a newExactFluidFilter
.Constructor parameters in alexiil.mc.lib.attributes.fluid.filter with type arguments of type FluidKey Constructor Description FluidSetFilter(java.util.Set<FluidKey> fluids)
-
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.impl
Methods in alexiil.mc.lib.attributes.fluid.impl that return types with arguments of type FluidKey Modifier and Type Method Description java.util.Set<FluidKey>
CombinedGroupedFluidInvView. getStoredFluids()
java.util.Set<FluidKey>
DelegatingGroupedFluidInv. getStoredFluids()
java.util.Set<FluidKey>
EmptyGroupedFluidInv. getStoredFluids()
java.util.Set<FluidKey>
GroupedFluidInvViewFixedWrapper. getStoredFluids()
Methods in alexiil.mc.lib.attributes.fluid.impl with parameters of type FluidKey Modifier and Type Method Description boolean
AbstractPartialFixedFluidInvView. isFluidValidForTank(int tank, FluidKey fluid)
boolean
CombinedFixedFluidInvView. isFluidValidForTank(int tank, FluidKey fluid)
boolean
DelegatingFixedFluidInv. isFluidValidForTank(int tank, FluidKey fluid)
boolean
EmptyFixedFluidInv. isFluidValidForTank(int tank, FluidKey item)
boolean
SimpleFixedFluidInv. isFluidValidForTank(int tank, FluidKey fluid)
boolean
SimpleLimitedFixedFluidInv. isFluidValidForTank(int tank, FluidKey fluid)
-
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.item
Methods in alexiil.mc.lib.attributes.fluid.item that return types with arguments of type FluidKey Modifier and Type Method Description java.util.Set<FluidKey>
ItemBasedSingleFluidInv. getStoredFluids()
-
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.mixin.api
Methods in alexiil.mc.lib.attributes.fluid.mixin.api that return FluidKey Modifier and Type Method Description FluidKey
IBucketItem. libblockattributes__getFluid(net.minecraft.item.ItemStack stack)
Methods in alexiil.mc.lib.attributes.fluid.mixin.api with parameters of type FluidKey Modifier and Type Method Description net.minecraft.item.ItemStack
IBucketItem. libblockattributes__withFluid(FluidKey fluid)
-
Uses of FluidKey in alexiil.mc.lib.attributes.fluid.volume
Subclasses of FluidKey in alexiil.mc.lib.attributes.fluid.volume Modifier and Type Class Description class
BiomeSourcedFluidKey
AColouredFluidKey
which gets it's colour from aBiome
s water colour.class
ColouredFluidKey
class
NormalFluidKey
Deprecated.Because anyFluidKey
can map to a singleFluid
, andSimpleFluidKey
has a much better name than this.class
PotionFluidKey
class
SimpleFluidKey
Simple implementation of aFluidKey
that doesn't do anything special.class
WeightedFluidKey<T>
Fields in alexiil.mc.lib.attributes.fluid.volume declared as FluidKey Modifier and Type Field Description static FluidKey
FluidKeys. EMPTY
FluidKey
FluidVolume. fluidKey
static FluidKey
FluidKeys. LAVA
Fields in alexiil.mc.lib.attributes.fluid.volume with type parameters of type FluidKey Modifier and Type Field Description static com.google.gson.JsonDeserializer<FluidKey>
FluidKey. DESERIALIZER
Methods in alexiil.mc.lib.attributes.fluid.volume that return FluidKey Modifier and Type Method Description static FluidKey
FluidKey. fromJson(com.google.gson.JsonObject json)
static FluidKey
FluidKey. fromMcBuffer(net.minecraft.network.PacketByteBuf buffer)
Reads aFluidKey
from a vanilla minecraftPacketByteBuf
.static FluidKey
FluidKey. fromTag(net.minecraft.nbt.CompoundTag tag)
static FluidKey
FluidKeys. get(FluidEntry entry)
static FluidKey
FluidKeys. get(net.minecraft.fluid.Fluid fluid)
static FluidKey
FluidKeys. get(net.minecraft.potion.Potion potion)
FluidKey
FluidVolume. getFluidKey()
Methods in alexiil.mc.lib.attributes.fluid.volume with parameters of type FluidKey Modifier and Type Method Description default void
FluidTemperature. addTemperatureToTooltip(FluidKey fluid, FluidTooltipContext context, java.util.List<net.minecraft.text.Text> tooltip)
void
FluidProperty. addTooltipExtras(FluidKey fluid, FluidTooltipContext context, java.util.List<net.minecraft.text.Text> tooltip)
Adds tooltip extras for this fluid property when getting the tooltip for just theFluidKey
.static FluidVolume
FluidVolume. create(FluidKey fluid, int amount)
Deprecated.double
FluidTemperature.DiscreteFluidTemperature. getTemperature(FluidKey fluidKey)
static void
FluidKeys. put(FluidEntry.FluidFloatingEntry entry, FluidKey fluidKey)
static void
FluidKeys. put(FluidRegistryEntry<?> entry, FluidKey fluidKey)
static void
FluidKeys. put(net.minecraft.fluid.Fluid fluid, FluidKey fluidKey)
static void
FluidKeys. put(net.minecraft.potion.Potion potion, FluidKey fluidKey)
Constructors in alexiil.mc.lib.attributes.fluid.volume with parameters of type FluidKey Constructor Description FluidVolume(FluidKey key, int amount)
Deprecated.FluidVolume(FluidKey key, FluidAmount amount)
FluidVolume(FluidKey key, com.google.gson.JsonObject json)
FluidVolume(FluidKey key, net.minecraft.nbt.CompoundTag tag)