java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<net.minecraft.world.level.material.Fluid>
net.minecraft.world.level.material.Fluid
net.minecraft.world.level.material.FlowingFluid
net.minecraftforge.fluids.ForgeFlowingFluid
com.simibubi.create.content.contraptions.fluids.VirtualFluid
All Implemented Interfaces:
net.minecraftforge.common.extensions.IForgeFluid, net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.level.material.Fluid>
Direct Known Subclasses:
PotionFluid

public class VirtualFluid extends net.minecraftforge.fluids.ForgeFlowingFluid
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.fluids.ForgeFlowingFluid

    net.minecraftforge.fluids.ForgeFlowingFluid.Flowing, net.minecraftforge.fluids.ForgeFlowingFluid.Properties, net.minecraftforge.fluids.ForgeFlowingFluid.Source

    Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    net.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>>
  • Field Summary

    Fields inherited from class net.minecraft.world.level.material.FlowingFluid

    FALLING, LEVEL

    Fields inherited from class net.minecraft.world.level.material.Fluid

    FLUID_STATE_REGISTRY, stateDefinition

    Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    delegate
  • Constructor Summary

    Constructors
    Constructor
    Description
    VirtualFluid(net.minecraftforge.fluids.ForgeFlowingFluid.Properties properties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected net.minecraft.world.level.block.state.BlockState
    createLegacyBlock(net.minecraft.world.level.material.FluidState state)
     
    int
    getAmount(net.minecraft.world.level.material.FluidState p_207192_1_)
     
    net.minecraft.world.item.Item
     
    net.minecraft.world.level.material.Fluid
     
    net.minecraft.world.level.material.Fluid
     
    boolean
    isSource(net.minecraft.world.level.material.FluidState p_207193_1_)
     

    Methods inherited from class net.minecraftforge.fluids.ForgeFlowingFluid

    beforeDestroyingBlock, canBeReplacedWith, canConvertToSource, createAttributes, getDropOff, getExplosionResistance, getSlopeFindDistance, getTickDelay, isSame

    Methods inherited from class net.minecraft.world.level.material.FlowingFluid

    canSpreadTo, createFluidStateDefinition, getFlow, getFlowing, getHeight, getLegacyLevel, getNewLiquid, getOwnHeight, getShape, getSlopeDistance, getSource, getSpread, getSpreadDelay, isSolidFace, spread, spreadTo, tick

    Methods inherited from class net.minecraft.world.level.material.Fluid

    animateTick, defaultFluidState, getAttributes, getDripParticle, getPickupSound, getStateDefinition, getTags, is, isEmpty, isRandomlyTicking, randomTick, registerDefaultState

    Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeFluid

    getExplosionResistance, isAABBInsideLiquid, isAABBInsideMaterial, isEntityInside
  • Constructor Details

    • VirtualFluid

      public VirtualFluid(net.minecraftforge.fluids.ForgeFlowingFluid.Properties properties)
  • Method Details

    • getSource

      public net.minecraft.world.level.material.Fluid getSource()
      Overrides:
      getSource in class net.minecraftforge.fluids.ForgeFlowingFluid
    • getFlowing

      public net.minecraft.world.level.material.Fluid getFlowing()
      Overrides:
      getFlowing in class net.minecraftforge.fluids.ForgeFlowingFluid
    • getBucket

      public net.minecraft.world.item.Item getBucket()
      Overrides:
      getBucket in class net.minecraftforge.fluids.ForgeFlowingFluid
    • createLegacyBlock

      protected net.minecraft.world.level.block.state.BlockState createLegacyBlock(net.minecraft.world.level.material.FluidState state)
      Overrides:
      createLegacyBlock in class net.minecraftforge.fluids.ForgeFlowingFluid
    • isSource

      public boolean isSource(net.minecraft.world.level.material.FluidState p_207193_1_)
      Specified by:
      isSource in class net.minecraft.world.level.material.Fluid
    • getAmount

      public int getAmount(net.minecraft.world.level.material.FluidState p_207192_1_)
      Specified by:
      getAmount in class net.minecraft.world.level.material.FlowingFluid