Package net.mcreator.element.types
Class Plant
java.lang.Object
net.mcreator.element.GeneratableElement
net.mcreator.element.types.Plant
- All Implemented Interfaces:
IBlock
,IBlockWithBoundingBox
,ICommonType
,IItem
,IItemWithModel
,IMCItemProvider
,ISpecialInfoHolder
,ITabContainedElement
public class Plant
extends GeneratableElement
implements IBlock, IItemWithModel, ITabContainedElement, ISpecialInfoHolder, IBlockWithBoundingBox
-
Nested Class Summary
Nested classes/interfaces inherited from class net.mcreator.element.GeneratableElement
GeneratableElement.GSONAdapter, GeneratableElement.Unknown
Nested classes/interfaces inherited from interface net.mcreator.element.types.interfaces.IBlockWithBoundingBox
IBlockWithBoundingBox.BoxEntry
-
Field Summary
Modifier and TypeFieldDescriptionboolean
boolean
int
boolean
int
int
boolean
int
boolean
boolean
int
double
boolean
boolean
boolean
boolean
boolean
boolean
double
int
int
int
double
double
double
int
boolean
boolean
Fields inherited from class net.mcreator.element.GeneratableElement
formatVersion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
WARNING: Calls to this method are generally not thread safe.boolean
boolean
This method determines what MCItems are provided by this generatable elementMethods inherited from class net.mcreator.element.GeneratableElement
finalizeModElementGeneration, getAdditionalTemplateData, getModElement, isUnknown, performQuickValidation, setModElement, wasConversionApplied
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.mcreator.element.types.interfaces.IBlockWithBoundingBox
isBoundingBoxEmpty, isFullCube, negativeBoundingBoxes, positiveBoundingBoxes
Methods inherited from interface net.mcreator.element.types.interfaces.IMCItemProvider
getIconForMCItem
Methods inherited from interface net.mcreator.element.types.interfaces.ISpecialInfoHolder
getFixedSpecialInformation
-
Field Details
-
renderType
public int renderType -
texture
-
textureBottom
-
customModelName
-
itemTexture
-
particleTexture
-
tintType
-
isItemTinted
public boolean isItemTinted -
plantType
-
suspiciousStewEffect
-
suspiciousStewDuration
public int suspiciousStewDuration -
secondaryTreeChance
public double secondaryTreeChance -
trees
-
flowerTrees
-
megaTrees
-
growapableSpawnType
-
growapableMaxHeight
public int growapableMaxHeight -
customBoundingBox
public boolean customBoundingBox -
disableOffset
public boolean disableOffset -
boundingBoxes
-
name
-
specialInformation
-
creativeTabs
-
hardness
public double hardness -
resistance
public double resistance -
luminance
public int luminance -
unbreakable
public boolean unbreakable -
isSolid
public boolean isSolid -
isCustomSoundType
public boolean isCustomSoundType -
soundOnStep
-
breakSound
-
stepSound
-
placeSound
-
hitSound
-
fallSound
-
useLootTableForDrops
public boolean useLootTableForDrops -
customDrop
-
dropAmount
public int dropAmount -
forceTicking
public boolean forceTicking -
emissiveRendering
public boolean emissiveRendering -
hasTileEntity
public boolean hasTileEntity -
isReplaceable
public boolean isReplaceable -
colorOnMap
-
creativePickItem
-
offsetType
-
aiPathNodeType
-
flammability
public int flammability -
fireSpreadSpeed
public int fireSpreadSpeed -
jumpFactor
public double jumpFactor -
speedFactor
public double speedFactor -
canBePlacedOn
-
placingCondition
-
isBonemealable
public boolean isBonemealable -
isBonemealTargetCondition
-
bonemealSuccessCondition
-
onBonemealSuccess
-
frequencyOnChunks
public int frequencyOnChunks -
generateFeature
public boolean generateFeature -
restrictionBiomes
-
generationType
-
patchSize
public int patchSize -
generateAtAnyHeight
public boolean generateAtAnyHeight -
onBlockAdded
-
onNeighbourBlockChanges
-
onTickUpdate
-
onRandomUpdateEvent
-
onDestroyedByPlayer
-
onDestroyedByExplosion
-
onStartToDestroy
-
onEntityCollides
-
onBlockPlacedBy
-
onRightClicked
-
onEntityWalksOn
-
onHitByProjectile
-
-
Constructor Details
-
Plant
-
-
Method Details
-
generateLootTable
public boolean generateLootTable() -
getItemModel
- Specified by:
getItemModel
in interfaceIItemWithModel
-
getTextureMap
- Specified by:
getTextureMap
in interfaceIItemWithModel
-
generateModElementPicture
- Overrides:
generateModElementPicture
in classGeneratableElement
- Returns:
- BufferedImage of mod element preview or null if default mod element icon should be used
-
getCreativeTabs
- Specified by:
getCreativeTabs
in interfaceITabContainedElement
-
isBlockTinted
public boolean isBlockTinted() -
isDoubleBlock
public boolean isDoubleBlock()- Specified by:
isDoubleBlock
in interfaceIBlock
-
getValidBoundingBoxes
- Specified by:
getValidBoundingBoxes
in interfaceIBlockWithBoundingBox
-
getRenderType
- Specified by:
getRenderType
in interfaceIBlock
-
getBaseTypesProvided
- Specified by:
getBaseTypesProvided
in interfaceIBlock
- Specified by:
getBaseTypesProvided
in interfaceICommonType
- Specified by:
getBaseTypesProvided
in interfaceIItem
-
providedMCItems
Description copied from interface:IMCItemProvider
This 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:
providedMCItems
in interfaceIMCItemProvider
- Returns:
- A list of MCItems provided by this generatable element
-
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 interfaceITabContainedElement
- Returns:
- list of items in the creative tab of this element
-
getSpecialInfoProcedure
- Specified by:
getSpecialInfoProcedure
in interfaceISpecialInfoHolder
-
textureBottom
-
getParticleTexture
-