Uses of Class
alexiil.mc.lib.attributes.fluid.volume.FluidVolume
| Package | Description |
|---|---|
| alexiil.mc.lib.attributes.fluid |
The base package for
fluid management. |
| alexiil.mc.lib.attributes.fluid.impl | |
| alexiil.mc.lib.attributes.fluid.item | |
| alexiil.mc.lib.attributes.fluid.render | |
| alexiil.mc.lib.attributes.fluid.volume | |
| alexiil.mc.lib.attributes.fluid.world |
-
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid
Fields in alexiil.mc.lib.attributes.fluid declared as FluidVolume Modifier and Type Field Description static FluidVolumeFluidVolumeUtil. EMPTYFluidVolumeFluidVolumeUtil.FluidTankInteraction. fluidMovedA copy of the fluid moved.FluidVolumeFluidVolumeUtil.FluidTransferResult. inTankTheFluidVolumethat should be placed into the tankFluidVolumeFluidVolumeUtil.FluidTransferResult. resultIf this is returned fromFluidVolumeUtil.computeInsertion(FluidVolume, FluidAmount, FluidVolume)then this is the leftover.Methods in alexiil.mc.lib.attributes.fluid that return FluidVolume Modifier and Type Method Description default FluidVolumeFluidExtractable. attemptAnyExtraction(int maxAmount, Simulation simulation)Deprecated.default FluidVolumeFluidExtractable. attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation)default FluidVolumeFluidExtractable. attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)Deprecated.default FluidVolumeFluidExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeSingleFluidTank. attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)Deprecated.FluidVolumeSingleFluidTank. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeFluidInsertable. attemptInsertion(FluidVolume fluid, Simulation simulation)Inserts the given stack into this insertable, and returns the excess.FluidVolumeSingleFluidTank. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeFluidProviderItem. drain(Ref<net.minecraft.item.ItemStack> stack)Deprecated.This has been replaced byFluidAttributes.EXTRACTABLE.default FluidVolumeFluidExtractable. extract(int maxAmount)Deprecated.Replaced byFluidExtractable.extract(FluidAmount)default FluidVolumeFluidExtractable. extract(FluidAmount maxAmount)Attempt to extract *any*FluidVolumefrom this.default FluidVolumeFluidExtractable. extract(FluidFilter filter, int maxAmount)Deprecated.Replaced byFluidExtractable.extract(FluidFilter, FluidAmount).default FluidVolumeFluidExtractable. extract(FluidFilter filter, FluidAmount maxAmount)default FluidVolumeFluidExtractable. extract(FluidKey filter, int maxAmount)Deprecated.Replaced byFluidExtractable.extract(FluidKey, FluidAmount)default FluidVolumeFluidExtractable. extract(FluidKey filter, FluidAmount maxAmount)default FluidVolumeFixedFluidInv. extractFluid(int tank, FluidFilter filter, FluidVolume mergeWith, FluidAmount maxAmount, Simulation simulation)Attempts to extract part of the fluid volume that is held in the given tank.static FluidVolumeFluidVolumeUtil. extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, int maxAmount, Simulation simulation)static FluidVolumeFluidVolumeUtil. extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, FluidAmount maxAmount, Simulation simulation)Deprecated.FluidVolumeSingleFluidTankView. get()static FluidVolumeFluidContainerRegistry. getContainedFluid(net.minecraft.item.Item item)Retrieves theFluidVolumecontained by the givenItem, if the item has been registered directly withFluidContainerRegistry.mapContainer(Item, Item, FluidVolume).FluidVolumeFixedFluidInvView. getInvFluid(int tank)FluidVolumeFluidContainerRegistry.FluidFillFunction. insert(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn)protected abstract FluidVolumeFluidContainerRegistry.FluidFillHandler. insert(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn)default FluidVolumeFluidInsertable. insert(FluidVolume fluid)Inserts the given stack into this insertable, and returns the excess.default FluidVolumeFixedFluidInv. insertFluid(int tank, FluidVolume volume, Simulation simulation)Attempts to insert the given fluid volume into the given tank, returning the excess.static FluidVolumeFluidVolumeUtil. insertSingle(FixedFluidInv inv, int tank, FluidVolume toInsert, Simulation simulation)Deprecated.As this has been moved toFixedFluidInv.insertFluid(int, FluidVolume, Simulation)static FluidVolumeFluidVolumeUtil. move(FluidExtractable from, FluidInsertable to)Attempts to move as much fluid as possible from theFluidExtractableto theFluidInsertable.static FluidVolumeFluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, int maximum)Deprecated.static FluidVolumeFluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidAmount maximum)Attempts to move up to the given amount of fluid from theFluidExtractableto theFluidInsertable.static FluidVolumeFluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidAmount maximum, Simulation simulation)Attempts to move up to the given amount of fluid from theFluidExtractableto theFluidInsertable.static FluidVolumeFluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidFilter filter)Attempts to move up to the given maximum amount of fluids from theFluidExtractableto theFluidInsertable, provided they match the givenFluidFilter.static FluidVolumeFluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidFilter filter, int maximum)Deprecated.static FluidVolumeFluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidFilter filter, FluidAmount maximum)Attempts to move up to the given maximum amount of fluids from theFluidExtractableto theFluidInsertable, provided they match the givenFluidFilter.static FluidVolumeFluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidFilter filter, FluidAmount maximum, Simulation simulation)Attempts to move up to the given maximum amount of fluids from theFluidExtractableto theFluidInsertable, provided they match the givenFluidFilter.static FluidVolumeFluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, FluidFilter filter, Simulation simulation)Attempts to move up to the given maximum amount of fluids from theFluidExtractableto theFluidInsertable, provided they match the givenFluidFilter.static FluidVolumeFluidVolumeUtil. move(FluidExtractable from, FluidInsertable to, Simulation simulation)Attempts to move as much fluid as possible from theFluidExtractableto theFluidInsertable.Methods in alexiil.mc.lib.attributes.fluid that return types with arguments of type FluidVolume Modifier and Type Method Description default java.lang.Iterable<FluidVolume>FixedFluidInvView. fluidIterable()Methods in alexiil.mc.lib.attributes.fluid with parameters of type FluidVolume Modifier and Type Method Description FluidVolumeFluidInsertable. attemptInsertion(FluidVolume fluid, Simulation simulation)Inserts the given stack into this insertable, and returns the excess.FluidVolumeSingleFluidTank. attemptInsertion(FluidVolume fluid, Simulation simulation)static FluidVolumeUtil.FluidTransferResultFluidVolumeUtil. computeExtraction(FluidVolume inTank, FluidFilter filter, FluidAmount maxAmount)Computes the result ofFluidVolumeUtil.extractSingle(FixedFluidInv, int, FluidFilter, FluidVolume, FluidAmount, Simulation), but without actually modifying an inventory.static FluidVolumeUtil.FluidTransferResultFluidVolumeUtil. computeExtraction(FluidVolume inTank, FluidFilter filter, FluidVolume toAddWith, FluidAmount maxAmount)Computes the result ofFluidVolumeUtil.extractSingle(FixedFluidInv, int, FluidFilter, FluidVolume, FluidAmount, Simulation), but without actually modifying an inventory.static FluidVolumeUtil.FluidTransferResultFluidVolumeUtil. computeInsertion(FluidVolume current, FluidAmount capacity, FluidVolume toInsert)Computes the result ofFluidVolumeUtil.insertSingle(FixedFluidInv, int, FluidVolume, Simulation), but without actually modifying an inventory.default FluidVolumeFixedFluidInv. extractFluid(int tank, FluidFilter filter, FluidVolume mergeWith, FluidAmount maxAmount, Simulation simulation)Attempts to extract part of the fluid volume that is held in the given tank.static FluidVolumeFluidVolumeUtil. extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, int maxAmount, Simulation simulation)static FluidVolumeFluidVolumeUtil. extractSingle(FixedFluidInv inv, int tank, FluidFilter filter, FluidVolume toAddWith, FluidAmount maxAmount, Simulation simulation)Deprecated.voidSingleFluidTank. forceSet(FluidVolume to)Sets the stack in the given slot to the given stack, or throws an exception if it was not permitted.default voidFixedFluidInv. forceSetInvFluid(int slot, FluidVolume to)Sets the stack in the given slot to the given stack, or throws an exception if it was not permitted.static FluidVolumeUtil.FluidTankInteractionFluidVolumeUtil.FluidTankInteraction. fromTank(FluidVolume fluid)Deprecated.FluidVolumeFluidContainerRegistry.FluidFillFunction. insert(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn)protected abstract FluidVolumeFluidContainerRegistry.FluidFillHandler. insert(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn)default FluidVolumeFluidInsertable. insert(FluidVolume fluid)Inserts the given stack into this insertable, and returns the excess.default FluidVolumeFixedFluidInv. insertFluid(int tank, FluidVolume volume, Simulation simulation)Attempts to insert the given fluid volume into the given tank, returning the excess.static FluidVolumeFluidVolumeUtil. insertSingle(FixedFluidInv inv, int tank, FluidVolume toInsert, Simulation simulation)Deprecated.As this has been moved toFixedFluidInv.insertFluid(int, FluidVolume, Simulation)static FluidVolumeUtil.FluidTankInteractionFluidVolumeUtil.FluidTankInteraction. intoTank(FluidVolume fluid)Deprecated.booleanSingleFluidTank. isValid(FluidVolume value)static voidFluidContainerRegistry. mapContainer(net.minecraft.item.Item empty, net.minecraft.item.Item full, FluidVolume fluid)Directly maps a givenItemas containing the given fluid, with anotherItemas the empty container.default booleanFluidInsertable. offer(FluidVolume object)Deprecated.This is an override forLimitedConsumer, for the full javadoc you probably want to callFluidInsertable.insert(FluidVolume)directly.default booleanFluidInsertable. offer(FluidVolume fluid, Simulation simulation)Deprecated.This is an override forLimitedConsumer, for the full javadoc you probably want to callFluidInsertable.attemptInsertion(FluidVolume, Simulation)directly.voidFluidInvTankChangeListener. onChange(FixedFluidInvView inv, int tank, FluidVolume previous, FluidVolume current)booleanSingleFluidTank. set(FluidVolume value)booleanSingleFluidTank. set(FluidVolume to, Simulation simulation)booleanFixedFluidInv. setInvFluid(int tank, FluidVolume to, Simulation simulation)Sets the fluid in the given tank to the given fluid.default booleanFluidInsertable. wouldAccept(FluidVolume object)Deprecated.This is an override forLimitedConsumer, for the full javadoc you probably want to callattemptInsertion(FluidVolume, Simulation.SIMULATE) directly.Method parameters in alexiil.mc.lib.attributes.fluid with type arguments of type FluidVolume Modifier and Type Method Description voidSingleFluidTank. modify(java.util.function.Function<FluidVolume,FluidVolume> function)Applies the given function to the stack held in the slot, and usesSingleFluidTank.forceSet(FluidVolume)on the result (Which will throw an exception if the returned stack is not valid for this tank).voidSingleFluidTank. modify(java.util.function.Function<FluidVolume,FluidVolume> function)Applies the given function to the stack held in the slot, and usesSingleFluidTank.forceSet(FluidVolume)on the result (Which will throw an exception if the returned stack is not valid for this tank).default voidFixedFluidInv. modifyTank(int tank, java.util.function.Function<FluidVolume,FluidVolume> function)Applies the given function to the stack held in the slot, and usesFixedFluidInv.forceSetInvFluid(int, FluidVolume)on the result (Which will throw an exception if the returned stack is not valid for this inventory).default voidFixedFluidInv. modifyTank(int tank, java.util.function.Function<FluidVolume,FluidVolume> function)Applies the given function to the stack held in the slot, and usesFixedFluidInv.forceSetInvFluid(int, FluidVolume)on the result (Which will throw an exception if the returned stack is not valid for this inventory).Constructors in alexiil.mc.lib.attributes.fluid with parameters of type FluidVolume Constructor Description FluidTankInteraction(FluidVolume fluidMoved, boolean intoTank)Deprecated.FluidTankInteraction(FluidVolume fluidMoved, boolean intoTank, FluidVolumeUtil.ItemContainerStatus intoTankStatus, FluidVolumeUtil.ItemContainerStatus fromTankStatus)Constructs a newFluidVolumeUtil.FluidTankInteractionobject.FluidTransferResult(FluidVolume result, FluidVolume inTank) -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.impl
Fields in alexiil.mc.lib.attributes.fluid.impl with type parameters of type FluidVolume Modifier and Type Field Description protected net.minecraft.util.collection.DefaultedList<FluidVolume>SimpleFixedFluidInv. tanksMethods in alexiil.mc.lib.attributes.fluid.impl that return FluidVolume Modifier and Type Method Description FluidVolumeDelegatingGroupedFluidInv. attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation)FluidVolumeSimpleFixedFluidInv. attemptAnyExtraction(FluidAmount maxAmount, Simulation simulation)FluidVolumeCombinedFluidExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeCombinedGroupedFluidInv. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeDelegatingGroupedFluidInv. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeEmptyFluidExtractable. attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)Deprecated.FluidVolumeEmptyFluidExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeEmptyFluidTransferable. attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)FluidVolumeEmptyGroupedFluidInv. attemptExtraction(FluidFilter filter, int maxAmount, Simulation simulation)FluidVolumeFilteredFluidExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeFilteredFluidTransferable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeGroupedFluidInvFixedWrapper. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeSimpleFixedFluidInv. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeSimpleFixedFluidInvExtractable. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)Deprecated.FluidVolumeSimpleLimitedGroupedFluidInv. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeCombinedFluidInsertable. attemptInsertion(FluidVolume stack, Simulation simulation)FluidVolumeCombinedGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeDelegatingGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeEmptyFluidTransferable. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeEmptyGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeFilteredFluidInsertable. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeFilteredFluidTransferable. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeGroupedFluidInvFixedWrapper. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeRejectingFluidInsertable. attemptInsertion(FluidVolume stack, Simulation simulation)FluidVolumeSimpleFixedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeSimpleFixedFluidInvInsertable. attemptInsertion(FluidVolume fluid, Simulation simulation)Deprecated.FluidVolumeSimpleLimitedGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeAbstractPartialFixedFluidInvView. getInvFluid(int tank)FluidVolumeCombinedFixedFluidInvView. getInvFluid(int tank)FluidVolumeDelegatingFixedFluidInv. getInvFluid(int tank)FluidVolumeEmptyFixedFluidInv. getInvFluid(int tank)FluidVolumeSimpleFixedFluidInv. getInvFluid(int tank)Methods in alexiil.mc.lib.attributes.fluid.impl with parameters of type FluidVolume Modifier and Type Method Description FluidVolumeCombinedFluidInsertable. attemptInsertion(FluidVolume stack, Simulation simulation)FluidVolumeCombinedGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeDelegatingGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeEmptyFluidTransferable. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeEmptyGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeFilteredFluidInsertable. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeFilteredFluidTransferable. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeGroupedFluidInvFixedWrapper. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeRejectingFluidInsertable. attemptInsertion(FluidVolume stack, Simulation simulation)FluidVolumeSimpleFixedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)FluidVolumeSimpleFixedFluidInvInsertable. attemptInsertion(FluidVolume fluid, Simulation simulation)Deprecated.FluidVolumeSimpleLimitedGroupedFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)protected voidSimpleFixedFluidInv. fireTankChange(int tank, FluidVolume previous, FluidVolume current)booleanCombinedFixedFluidInv. setInvFluid(int tank, FluidVolume to, Simulation simulation)booleanDelegatingFixedFluidInv. setInvFluid(int tank, FluidVolume to, Simulation simulation)booleanEmptyFixedFluidInv. setInvFluid(int tank, FluidVolume to, Simulation simulation)booleanMappedFixedFluidInv. setInvFluid(int tank, FluidVolume to, Simulation simulation)booleanSimpleFixedFluidInv. setInvFluid(int tank, FluidVolume to, Simulation simulation)booleanSimpleLimitedFixedFluidInv. setInvFluid(int tank, FluidVolume to, Simulation simulation)booleanSubFixedFluidInv. setInvFluid(int tank, FluidVolume to, Simulation simulation) -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.item
Fields in alexiil.mc.lib.attributes.fluid.item declared as FluidVolume Modifier and Type Field Description FluidVolumeItemBasedSingleFluidInv.HeldFluidInfo. fluidMethods in alexiil.mc.lib.attributes.fluid.item that return FluidVolume Modifier and Type Method Description FluidVolumeItemBasedSingleFluidInv. attemptExtraction(FluidFilter filter, FluidAmount maxAmount, Simulation simulation)FluidVolumeItemBasedSingleFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)Methods in alexiil.mc.lib.attributes.fluid.item with parameters of type FluidVolume Modifier and Type Method Description FluidVolumeItemBasedSingleFluidInv. attemptInsertion(FluidVolume fluid, Simulation simulation)protected abstract net.minecraft.item.ItemStackItemBasedSingleFluidInv. writeToStack(net.minecraft.item.ItemStack stack, FluidVolume fluid)Constructors in alexiil.mc.lib.attributes.fluid.item with parameters of type FluidVolume Constructor Description HeldFluidInfo(FluidVolume fluid, FluidAmount capacity) -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.render
Methods in alexiil.mc.lib.attributes.fluid.render with parameters of type FluidVolume Modifier and Type Method Description protected static net.minecraft.client.render.RenderLayerFluidVolumeRenderer. getRenderLayer(FluidVolume fluid)protected static net.minecraft.client.texture.Sprite[]FluidVolumeRenderer. getSprites(FluidVolume fluid)voidDefaultFluidVolumeRenderer. render(FluidVolume fluid, java.util.List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices)voidEnchantmentGlintFluidRenderer. render(FluidVolume fluid, java.util.List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices)abstract voidFluidVolumeRenderer. render(FluidVolume fluid, java.util.List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices)Renders a list of faces of the given fluid at the specified co-ordinates.voidImplicitVanillaFluidVolumeRenderer. render(FluidVolume fluid, java.util.List<FluidRenderFace> faces, net.minecraft.client.render.VertexConsumerProvider vcp, net.minecraft.client.util.math.MatrixStack matrices)Deprecated.voidFluidVolumeRenderer. renderGuiRectangle(FluidVolume fluid, double x0, double y0, double x1, double y1) -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.volume
Subclasses of FluidVolume in alexiil.mc.lib.attributes.fluid.volume Modifier and Type Class Description classBiomeSourcedFluidVolumeA fluid that changes it's makup based on theBiomes that it is taken from.classColouredFluidVolumeA fluid volume that stores it's colours as 4 floats: red, green, blue, and alpha.classNormalFluidVolumeDeprecated.Because anyFluidKeycan map to a singleFluid, andSimpleFluidVolumehas a much better name than this.classPotionFluidVolumeclassSimpleFluidVolumeSimple implementation of aFluidVolumethat doesn't do anything special.classWeightedFluidVolume<T>Fields in alexiil.mc.lib.attributes.fluid.volume with type parameters of type FluidVolume Modifier and Type Field Description static com.google.gson.JsonDeserializer<FluidVolume>FluidVolume. DESERIALIZERMethods in alexiil.mc.lib.attributes.fluid.volume that return FluidVolume Modifier and Type Method Description FluidVolumeFluidVolume. copy()protected FluidVolumeFluidVolume. copy0()static FluidVolumeFluidVolume. create(FluidKey fluid, int amount)Deprecated.static FluidVolumeFluidVolume. create(net.minecraft.fluid.Fluid fluid, int amount)Deprecated.static FluidVolumeFluidVolume. create(net.minecraft.potion.Potion potion, int amount)Deprecated.protected FluidVolumeFluidKey. createFromMcBuffer(net.minecraft.network.PacketByteBuf buffer, FluidAmount amount)Creates a newFluidVolumeand reads it from the buffer withfromMcBufferInternal(PacketByteBuf).static FluidVolumeFluidVolume. fromJson(com.google.gson.JsonObject json)static FluidVolumeFluidVolume. fromMcBuffer(net.minecraft.network.PacketByteBuf buffer)static FluidVolumeFluidVolume. fromTag(net.minecraft.nbt.CompoundTag tag)FluidVolumeBiomeSourcedFluidKey. fromWorld(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos)FluidVolumeFluidKey. fromWorld(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos)Called when this is pumped out from the world.static FluidVolumeFluidVolume. merge(FluidVolume a, FluidVolume b)static FluidVolumeFluidVolume. merge(FluidVolume a, FluidVolume b, FluidAmount.FluidMergeRounding rounding)FluidVolumeFluidVolume. multiplyAmount(int by)Returns a newFluidVolumethat is a copy of this one, but with an amount multiplied by the given amount.FluidVolumeFluidKey. readVolume(com.google.gson.JsonObject json)abstract FluidVolumeFluidKey. readVolume(net.minecraft.nbt.CompoundTag tag)FluidVolumeFluidKey. readVolume(net.minecraft.network.PacketByteBuf buffer)Reads aFluidVolumefrom thePacketByteBuf.FluidVolumeSimpleFluidKey. readVolume(com.google.gson.JsonObject json)FluidVolumeSimpleFluidKey. readVolume(net.minecraft.nbt.CompoundTag tag)FluidVolumeFluidVolume. split(int toRemove)Deprecated.Replaced bysplit(FluidAmount)FluidVolumeFluidVolume. split(FluidAmount toRemove)Splits off the given amount of fluid and returns it, reducing this amount as well.
If the given amount is greater than this then the returnedFluidVolumewill have an amount equal to this amount, and not the amount given.FluidVolumeFluidVolume. split(FluidAmount toRemove, java.math.RoundingMode rounding)Splits off the given amount of fluid and returns it, reducing this amount as well.
If the given amount is greater than this then the returnedFluidVolumewill have an amount equal to this amount, and not the amount given.protected FluidVolumeColouredFluidVolume. split0(FluidAmount toTake, java.math.RoundingMode rounding)protected FluidVolumeFluidVolume. split0(FluidAmount toTake, java.math.RoundingMode rounding)FluidVolumeFluidKey. withAmount(int amount)Deprecated.FluidVolumeFluidKey. withAmount(FluidAmount amount)FluidVolumeFluidVolume. withAmount(FluidAmount newAmount)Creates a copy of this fluid with the given amount.FluidVolumeSimpleFluidKey. withAmount(FluidAmount amount)Methods in alexiil.mc.lib.attributes.fluid.volume with parameters of type FluidVolume Modifier and Type Method Description default voidFluidTemperature. addTemperatureToTooltip(FluidVolume fluid, FluidTooltipContext context, java.util.List<net.minecraft.text.Text> tooltip)voidFluidProperty. addTooltipExtras(FluidVolume fluid, FluidTooltipContext context, java.util.List<net.minecraft.text.Text> tooltip)Adds tooltip extras for this fluid property when getting the tooltip for a fullFluidVolume.static booleanFluidVolume. areEqualExceptAmounts(FluidVolume a, FluidVolume b)static booleanFluidVolume. areFullyEqual(FluidVolume a, FluidVolume b)Deprecated.UseObject.equals(Object)instead of this.booleanFluidVolume. canMerge(FluidVolume with)Checks to see if the givenFluidVolumecan merge into this one.TFluidProperty. get(FluidVolume volume)Helper method to obtain this property from the given fluid.doubleFluidTemperature.ContinuousFluidTemperature. getTemperature(FluidVolume fluid)default doubleFluidTemperature.DiscreteFluidTemperature. getTemperature(FluidVolume fluid)doubleFluidTemperature. getTemperature(FluidVolume fluid)protected abstract TFluidProperty. merge(FluidVolume volumeA, FluidVolume volumeB, FluidAmount amount, T valueA, T valueB)Merges two values together, using the twoFluidVolumes for context.booleanFluidVolume. merge(FluidVolume other, FluidAmount.FluidMergeRounding rounding, Simulation simulation)static FluidVolumeFluidVolume. merge(FluidVolume a, FluidVolume b)static FluidVolumeFluidVolume. merge(FluidVolume a, FluidVolume b, FluidAmount.FluidMergeRounding rounding)booleanFluidVolume. merge(FluidVolume other, Simulation simulation)protected voidFluidVolume. merge0(FluidVolume other, FluidAmount.FluidMergeRounding rounding)Deprecated.becausemergeInternal(FluidVolume, FluidMergeResult)allows every method to share the sameFluidAmount.FluidMergeResultobject, which reduces the chance to make a mistake when merging the two amounts.protected voidColouredFluidVolume. mergeInternal(FluidVolume other, FluidAmount.FluidMergeResult mergedAmounts)protected voidFluidVolume. mergeInternal(FluidVolume other, FluidAmount.FluidMergeResult mergedAmounts)Actually merges twoFluidVolume's together.protected voidWeightedFluidVolume. mergeInternal(FluidVolume vol, FluidAmount.FluidMergeResult result)static booleanFluidVolume. mergeInto(FluidVolume source, FluidVolume target)Merges as much fluid as possible from the source into the target, leaving the result in thestatic booleanFluidVolume. mergeInto(FluidVolume source, FluidVolume target, FluidAmount.FluidMergeRounding rounding)Merges as much fluid as possible from the source into the target, leaving the result in thestatic booleanFluidVolume. mergeInto(FluidVolume source, FluidVolume target, FluidAmount.FluidMergeRounding rounding, Simulation simulation)Merges as much fluid as possible from the source into the target, leaving the result in the source.voidFluidProperty. set(FluidVolume volume, T value)Helper method to set a value for this property to the given fluid. -
Uses of FluidVolume in alexiil.mc.lib.attributes.fluid.world
Methods in alexiil.mc.lib.attributes.fluid.world that return FluidVolume Modifier and Type Method Description static FluidVolumeFluidWorldUtil. drain(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, Simulation simulation)Attempts to drain the given block of it's fluid.static FluidVolumeFluidWorldUtil. fill(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, FluidVolume volume, Simulation simulation)Attempts to place the given fluid volume into the given block position.FluidVolumeIFluidVolumeDrainable. tryDrainFluid(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.BlockState state, Simulation simulation)Methods in alexiil.mc.lib.attributes.fluid.world with parameters of type FluidVolume Modifier and Type Method Description static FluidVolumeFluidWorldUtil. fill(net.minecraft.world.WorldAccess world, net.minecraft.util.math.BlockPos pos, FluidVolume volume, Simulation simulation)Attempts to place the given fluid volume into the given block position.