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.UnknownNested classes/interfaces inherited from interface net.mcreator.element.types.interfaces.IBlockWithBoundingBox
IBlockWithBoundingBox.BoxEntry -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanintbooleanintintbooleanintbooleanbooleanintdoublebooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleandoubleintintintintdoubledoubledoubleintbooleanbooleanintintFields 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.booleanbooleanhasDrops()booleanbooleanbooleanThis 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.IBlockWithBoundingBox
isBoundingBoxEmpty, isFullCube, negativeBoundingBoxes, positiveBoundingBoxesMethods inherited from interface net.mcreator.element.types.interfaces.IMCItemProvider
getIconForMCItemMethods inherited from interface net.mcreator.element.types.interfaces.ISpecialInfoHolder
getFixedSpecialInformation, hasSpecialInformation
-
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 -
isWaterloggable
public boolean isWaterloggable -
hasBlockItem
public boolean hasBlockItem -
maxStackSize
public int maxStackSize -
rarity
-
immuneToFire
public boolean immuneToFire -
isCustomSoundType
public boolean isCustomSoundType -
soundOnStep
-
breakSound
-
stepSound
-
placeSound
-
hitSound
-
fallSound
-
useLootTableForDrops
public boolean useLootTableForDrops -
customDrop
-
dropAmount
public int dropAmount -
xpAmountMin
public int xpAmountMin -
xpAmountMax
public int xpAmountMax -
forceTicking
public boolean forceTicking -
emissiveRendering
public boolean emissiveRendering -
hasTileEntity
public boolean hasTileEntity -
isReplaceable
public boolean isReplaceable -
colorOnMap
-
creativePickItem
-
offsetType
-
aiPathNodeType
-
strippingResult
-
ignitedByLava
public boolean ignitedByLava -
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
-
onEntityFallsOn
-
-
Constructor Details
-
Plant
-
-
Method Details
-
generateLootTable
public boolean generateLootTable() -
hasDrops
public boolean hasDrops() -
isWaterloggable
public boolean isWaterloggable() -
getItemModel
- Specified by:
getItemModelin interfaceIItemWithModel
-
getTextureMap
- Specified by:
getTextureMapin interfaceIItemWithModel
-
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
-
isBlockTinted
public boolean isBlockTinted() -
isDoubleBlock
public boolean isDoubleBlock()- Specified by:
isDoubleBlockin interfaceIBlock
-
getValidBoundingBoxes
- Specified by:
getValidBoundingBoxesin interfaceIBlockWithBoundingBox
-
getRenderType
- Specified by:
getRenderTypein interfaceIBlock
-
hasCustomItemProperties
public boolean hasCustomItemProperties()- Specified by:
hasCustomItemPropertiesin 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
-
textureBottom
-
getParticleTexture
-