Package net.mcreator.element.types
Class Fluid
java.lang.Object
net.mcreator.element.GeneratableElement
net.mcreator.element.types.Fluid
- All Implemented Interfaces:
IBlock,ICommonType,IItem,IMCItemProvider,ISpecialInfoHolder,ITabContainedElement
public class Fluid
extends GeneratableElement
implements IBlock, ITabContainedElement, ISpecialInfoHolder
-
Nested Class Summary
Nested classes/interfaces inherited from class net.mcreator.element.GeneratableElement
GeneratableElement.GSONAdapter, GeneratableElement.Unknown -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintbooleanintintintdoublebooleanbooleanbooleanintintintintdoubleintbooleanintintintFields inherited from class net.mcreator.element.GeneratableElement
formatVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWARNING: Calls to this method are generally not thread safe.getIconForMCItem(Workspace workspace, String suffix) This method determines what icon should be used for a custom MCItem, according to its eventual suffixbooleanbooleanThis method determines what MCItems are provided by this generatable elementMethods inherited from class net.mcreator.element.GeneratableElement
finalizeModElementGeneration, getAdditionalTemplateData, getModElement, isUnknown, performQuickValidation, setModElement, wasConversionAppliedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.mcreator.element.types.interfaces.IBlock
hasCustomItemProperties, isDoubleBlockMethods inherited from interface net.mcreator.element.types.interfaces.ISpecialInfoHolder
getFixedSpecialInformation, hasSpecialInformation
-
Field Details
-
name
-
bucketName
-
textureStill
-
textureFlowing
-
textureRenderOverlay
-
hasFog
public boolean hasFog -
fogColor
-
fogStartDistance
-
fogEndDistance
-
tintType
-
canMultiply
public boolean canMultiply -
flowRate
public int flowRate -
levelDecrease
public int levelDecrease -
slopeFindDistance
public int slopeFindDistance -
spawnParticles
public boolean spawnParticles -
dripParticle
-
flowStrength
public double flowStrength -
luminosity
public int luminosity -
density
public int density -
viscosity
public int viscosity -
temperature
public int temperature -
type
-
generateBucket
public boolean generateBucket -
textureBucket
-
creativeTabs
-
emptySound
-
rarity
-
specialInformation
-
resistance
public double resistance -
luminance
public int luminance -
lightOpacity
public int lightOpacity -
emissiveRendering
public boolean emissiveRendering -
tickRate
public int tickRate -
ignitedByLava
public boolean ignitedByLava -
flammability
public int flammability -
fireSpreadSpeed
public int fireSpreadSpeed -
colorOnMap
-
onBlockAdded
-
onNeighbourChanges
-
onTickUpdate
-
onEntityCollides
-
onRandomUpdateEvent
-
onDestroyedByExplosion
-
flowCondition
-
beforeReplacingBlock
-
-
Constructor Details
-
Fluid
-
-
Method Details
-
generateModElementPicture
- Overrides:
generateModElementPicturein classGeneratableElement- Returns:
- BufferedImage of mod element preview or null if default mod element icon should be used
-
getCreativeTabs
- Specified by:
getCreativeTabsin interfaceITabContainedElement
-
isFluidTinted
public boolean isFluidTinted() -
extendsFluidAttributes
public boolean extendsFluidAttributes() -
getRenderType
- Specified by:
getRenderTypein interfaceIBlock
-
getBaseTypesProvided
- Specified by:
getBaseTypesProvidedin interfaceIBlock- Specified by:
getBaseTypesProvidedin interfaceICommonType- Specified by:
getBaseTypesProvidedin interfaceIItem
-
providedMCItems
Description copied from interface:IMCItemProviderThis method determines what MCItems are provided by this generatable elementWARNING: 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:
providedMCItemsin interfaceIMCItemProvider- Returns:
- A list of MCItems provided by this generatable element
-
getCreativeTabItems
Description copied from interface:ITabContainedElementWARNING: 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:
getCreativeTabItemsin interfaceITabContainedElement- Returns:
- list of items in the creative tab of this element
-
getSpecialInfoProcedure
- Specified by:
getSpecialInfoProcedurein interfaceISpecialInfoHolder
-
getIconForMCItem
Description copied from interface:IMCItemProviderThis method determines what icon should be used for a custom MCItem, according to its eventual suffix- Specified by:
getIconForMCItemin interfaceIMCItemProvider- Parameters:
workspace- The current workspacesuffix- 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.
-
hasCustomBucketTexture
public boolean hasCustomBucketTexture()
-