Class Fluid

All Implemented Interfaces:
IBlock, ICommonType, IItem, IMCItemProvider, ISpecialInfoHolder, ITabContainedElement

public class Fluid extends GeneratableElement implements IBlock, ITabContainedElement, ISpecialInfoHolder
  • Field Details

    • name

      public String name
    • bucketName

      public String bucketName
    • textureStill

      public TextureHolder textureStill
    • textureFlowing

      public TextureHolder textureFlowing
    • textureRenderOverlay

      public TextureHolder textureRenderOverlay
    • hasFog

      public boolean hasFog
    • fogColor

      public Color fogColor
    • fogStartDistance

      public NumberProcedure fogStartDistance
    • fogEndDistance

      public NumberProcedure fogEndDistance
    • tintType

      public String tintType
    • canMultiply

      public boolean canMultiply
    • flowRate

      public int flowRate
    • levelDecrease

      public int levelDecrease
    • slopeFindDistance

      public int slopeFindDistance
    • spawnParticles

      public boolean spawnParticles
    • dripParticle

      public Particle dripParticle
    • flowStrength

      public double flowStrength
    • luminosity

      public int luminosity
    • density

      public int density
    • viscosity

      public int viscosity
    • temperature

      public int temperature
    • type

      @Nonnull public String type
    • generateBucket

      public boolean generateBucket
    • textureBucket

      public TextureHolder textureBucket
    • creativeTabs

      public List<TabEntry> creativeTabs
    • emptySound

      public Sound emptySound
    • rarity

      public String rarity
    • specialInformation

      public StringListProcedure specialInformation
    • resistance

      public double resistance
    • luminance

      public int luminance
    • lightOpacity

      public int lightOpacity
    • emissiveRendering

      public boolean emissiveRendering
    • tickRate

      public int tickRate
    • flammability

      public int flammability
    • fireSpreadSpeed

      public int fireSpreadSpeed
    • colorOnMap

      public String colorOnMap
    • onBlockAdded

      public Procedure onBlockAdded
    • onNeighbourChanges

      public Procedure onNeighbourChanges
    • onTickUpdate

      public Procedure onTickUpdate
    • onEntityCollides

      public Procedure onEntityCollides
    • onRandomUpdateEvent

      public Procedure onRandomUpdateEvent
    • onDestroyedByExplosion

      public Procedure onDestroyedByExplosion
    • flowCondition

      public Procedure flowCondition
    • beforeReplacingBlock

      public Procedure beforeReplacingBlock
  • Constructor Details

  • Method Details

    • generateModElementPicture

      public BufferedImage generateModElementPicture()
      Overrides:
      generateModElementPicture in class GeneratableElement
      Returns:
      BufferedImage of mod element preview or null if default mod element icon should be used
    • getCreativeTabs

      public List<TabEntry> getCreativeTabs()
      Specified by:
      getCreativeTabs in interface ITabContainedElement
    • isFluidTinted

      public boolean isFluidTinted()
    • extendsFluidAttributes

      public boolean extendsFluidAttributes()
    • getRenderType

      public String getRenderType()
      Specified by:
      getRenderType in interface IBlock
    • getBaseTypesProvided

      public Collection<BaseType> getBaseTypesProvided()
      Specified by:
      getBaseTypesProvided in interface IBlock
      Specified by:
      getBaseTypesProvided in interface ICommonType
      Specified by:
      getBaseTypesProvided in interface IItem
    • providedMCItems

      public List<MCItem> providedMCItems()
      Description copied from interface: IMCItemProvider
      This method determines what MCItems are provided by this generatable element

      WARNING: Calls to this method are generally not thread safe. Implementations can call MCItem.Custom::new that calls getBlockIconBasedOnName which calls ModElement#getGeneratableElement that is not thread safe

      Specified by:
      providedMCItems in interface IMCItemProvider
      Returns:
      A list of MCItems provided by this generatable element
    • getCreativeTabItems

      public List<MCItem> getCreativeTabItems()
      Description copied from interface: ITabContainedElement
      WARNING: Calls to this method are generally not thread safe. Implementations can call MCItem.Custom::new that calls getBlockIconBasedOnName that calls ModElement#getGeneratableElement which is not thread safe
      Specified by:
      getCreativeTabItems in interface ITabContainedElement
      Returns:
      list of items in the creative tab of this element
    • getSpecialInfoProcedure

      public StringListProcedure getSpecialInfoProcedure()
      Specified by:
      getSpecialInfoProcedure in interface ISpecialInfoHolder
    • getIconForMCItem

      public ImageIcon getIconForMCItem(Workspace workspace, String suffix)
      Description copied from interface: IMCItemProvider
      This method determines what icon should be used for a custom MCItem, according to its eventual suffix
      Specified by:
      getIconForMCItem in interface IMCItemProvider
      Parameters:
      workspace - The current workspace
      suffix - The suffix of the given MCItem (for example, "bucket" for fluid buckets). If this MCItem has no suffix, this will be the empty string.
      Returns:
      An ImageIcon to use for the given MCItem, or null to use the element preview image.