Class LivingEntity

java.lang.Object
net.mcreator.element.GeneratableElement
net.mcreator.element.types.LivingEntity
All Implemented Interfaces:
ICommonType, IEntityWithModel, IMCItemProvider, ITabContainedElement

  • Field Details

    • mobName

      public String mobName
    • mobLabel

      public String mobLabel
    • mobModelName

      @Nonnull public String mobModelName
    • mobModelTexture

      public String mobModelTexture
    • transparentModelCondition

      public LogicProcedure transparentModelCondition
    • isShakingCondition

      public LogicProcedure isShakingCondition
    • solidBoundingBox

      public LogicProcedure solidBoundingBox
    • visualScale

      public NumberProcedure visualScale
    • boundingBoxScale

      public NumberProcedure boundingBoxScale
    • modelLayers

      public List<LivingEntity.ModelLayerEntry> modelLayers
    • animations

      public List<LivingEntity.AnimationEntry> animations
    • modelWidth

      public double modelWidth
    • modelHeight

      public double modelHeight
    • modelShadowSize

      public double modelShadowSize
    • mountedYOffset

      public double mountedYOffset
    • hasSpawnEgg

      public boolean hasSpawnEgg
    • spawnEggBaseColor

      public Color spawnEggBaseColor
    • spawnEggDotColor

      public Color spawnEggDotColor
    • creativeTabs

      public List<TabEntry> creativeTabs
    • isBoss

      public boolean isBoss
    • bossBarColor

      public String bossBarColor
    • bossBarType

      public String bossBarType
    • equipmentMainHand

      public MItemBlock equipmentMainHand
    • equipmentOffHand

      public MItemBlock equipmentOffHand
    • equipmentHelmet

      public MItemBlock equipmentHelmet
    • equipmentBody

      public MItemBlock equipmentBody
    • equipmentLeggings

      public MItemBlock equipmentLeggings
    • equipmentBoots

      public MItemBlock equipmentBoots
    • mobBehaviourType

      public String mobBehaviourType
    • mobCreatureType

      public String mobCreatureType
    • attackStrength

      public int attackStrength
    • attackKnockback

      public double attackKnockback
    • knockbackResistance

      public double knockbackResistance
    • movementSpeed

      public double movementSpeed
    • stepHeight

      public double stepHeight
    • armorBaseValue

      public double armorBaseValue
    • trackingRange

      public int trackingRange
    • followRange

      public int followRange
    • health

      public int health
    • xpAmount

      public int xpAmount
    • waterMob

      public boolean waterMob
    • breatheUnderwater

      public LogicProcedure breatheUnderwater
    • pushedByFluids

      public LogicProcedure pushedByFluids
    • flyingMob

      public boolean flyingMob
    • guiBoundTo

      @Nullable public String guiBoundTo
    • inventorySize

      public int inventorySize
    • inventoryStackSize

      public int inventoryStackSize
    • disableCollisions

      public boolean disableCollisions
    • ridable

      public boolean ridable
    • canControlForward

      public boolean canControlForward
    • canControlStrafe

      public boolean canControlStrafe
    • immuneToFire

      public boolean immuneToFire
    • immuneToArrows

      public boolean immuneToArrows
    • immuneToFallDamage

      public boolean immuneToFallDamage
    • immuneToCactus

      public boolean immuneToCactus
    • immuneToDrowning

      public boolean immuneToDrowning
    • immuneToLightning

      public boolean immuneToLightning
    • immuneToPotions

      public boolean immuneToPotions
    • immuneToPlayer

      public boolean immuneToPlayer
    • immuneToExplosion

      public boolean immuneToExplosion
    • immuneToTrident

      public boolean immuneToTrident
    • immuneToAnvil

      public boolean immuneToAnvil
    • immuneToWither

      public boolean immuneToWither
    • immuneToDragonBreath

      public boolean immuneToDragonBreath
    • mobDrop

      public MItemBlock mobDrop
    • livingSound

      public Sound livingSound
    • hurtSound

      public Sound hurtSound
    • deathSound

      public Sound deathSound
    • stepSound

      public Sound stepSound
    • raidCelebrationSound

      public Sound raidCelebrationSound
    • entityDataEntries

      public List<PropertyDataWithValue<?>> entityDataEntries
    • onStruckByLightning

      public Procedure onStruckByLightning
    • whenMobFalls

      public Procedure whenMobFalls
    • whenMobDies

      public Procedure whenMobDies
    • whenMobIsHurt

      public Procedure whenMobIsHurt
    • onRightClickedOn

      public Procedure onRightClickedOn
    • whenThisMobKillsAnother

      public Procedure whenThisMobKillsAnother
    • onMobTickUpdate

      public Procedure onMobTickUpdate
    • onPlayerCollidesWith

      public Procedure onPlayerCollidesWith
    • onInitialSpawn

      public Procedure onInitialSpawn
    • hasAI

      public boolean hasAI
    • aiBase

      public String aiBase
    • aixml

      public String aixml
    • breedable

      public boolean breedable
    • tameable

      public boolean tameable
    • breedTriggerItems

      public List<MItemBlock> breedTriggerItems
    • ranged

      public boolean ranged
    • rangedAttackItem

      public MItemBlock rangedAttackItem
    • rangedItemType

      public String rangedItemType
    • rangedAttackInterval

      public int rangedAttackInterval
    • rangedAttackRadius

      public double rangedAttackRadius
    • spawnThisMob

      public boolean spawnThisMob
    • doesDespawnWhenIdle

      public boolean doesDespawnWhenIdle
    • spawningCondition

      public Procedure spawningCondition
    • spawningProbability

      public int spawningProbability
    • mobSpawningType

      public String mobSpawningType
    • minNumberOfMobsPerGroup

      public int minNumberOfMobsPerGroup
    • maxNumberOfMobsPerGroup

      public int maxNumberOfMobsPerGroup
    • restrictionBiomes

      public List<BiomeEntry> restrictionBiomes
    • spawnInDungeons

      public boolean spawnInDungeons
    • raidSpawnsCount

      public int[] raidSpawnsCount
  • Constructor Details

    • LivingEntity

      public LivingEntity(ModElement element)
  • Method Details

    • getEntityModel

      @Nullable public Model getEntityModel()
      Specified by:
      getEntityModel in interface IEntityWithModel
    • getBaseTypesProvided

      public Collection<BaseType> getBaseTypesProvided()
      Specified by:
      getBaseTypesProvided in interface ICommonType
    • getCreativeTabs

      public List<TabEntry> getCreativeTabs()
      Specified by:
      getCreativeTabs in interface ITabContainedElement
    • 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
    • hasDrop

      public boolean hasDrop()
    • hasCustomProjectile

      public boolean hasCustomProjectile()
    • getAdditionalTemplateData

      @Nullable public IAdditionalTemplateDataProvider getAdditionalTemplateData()
      Description copied from class: GeneratableElement
      Override this to add additional data to the element data model
      Overrides:
      getAdditionalTemplateData in class GeneratableElement
      Returns:
      null if no additional data, or IAdditionalTemplateDataProvider implementation
    • 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
    • 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.