Package net.mcreator.element.types
Class LivingEntity
java.lang.Object
net.mcreator.element.GeneratableElement
net.mcreator.element.types.LivingEntity
- All Implemented Interfaces:
ICommonType
,IEntityWithModel
,IMCItemProvider
,ITabContainedElement
public class LivingEntity
extends GeneratableElement
implements IEntityWithModel, ITabContainedElement, ICommonType, IMCItemProvider
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class net.mcreator.element.GeneratableElement
GeneratableElement.GSONAdapter, GeneratableElement.Unknown
-
Field Summary
Modifier and TypeFieldDescriptiondouble
double
int
boolean
boolean
boolean
boolean
boolean
boolean
int
boolean
boolean
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
int
int
boolean
double
int
int
double
double
double
double
double
int[]
boolean
int
double
boolean
boolean
int
boolean
double
boolean
int
boolean
int
Fields inherited from class net.mcreator.element.GeneratableElement
formatVersion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionOverride this to add additional data to the element data modelWARNING: 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 suffixboolean
boolean
hasDrop()
This method determines what MCItems are provided by this generatable elementMethods inherited from class net.mcreator.element.GeneratableElement
finalizeModElementGeneration, 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.IEntityWithModel
getModelType, isBuiltInModel, isCustomModel
-
Field Details
-
mobName
-
mobLabel
-
mobModelName
-
mobModelTexture
-
transparentModelCondition
-
isShakingCondition
-
solidBoundingBox
-
visualScale
-
boundingBoxScale
-
modelLayers
-
animations
-
modelWidth
public double modelWidth -
modelHeight
public double modelHeight -
modelShadowSize
public double modelShadowSize -
mountedYOffset
public double mountedYOffset -
hasSpawnEgg
public boolean hasSpawnEgg -
spawnEggBaseColor
-
spawnEggDotColor
-
creativeTabs
-
isBoss
public boolean isBoss -
bossBarColor
-
bossBarType
-
equipmentMainHand
-
equipmentOffHand
-
equipmentHelmet
-
equipmentBody
-
equipmentLeggings
-
equipmentBoots
-
mobBehaviourType
-
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
-
pushedByFluids
-
flyingMob
public boolean flyingMob -
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
-
livingSound
-
hurtSound
-
deathSound
-
stepSound
-
raidCelebrationSound
-
entityDataEntries
-
onStruckByLightning
-
whenMobFalls
-
whenMobDies
-
whenMobIsHurt
-
onRightClickedOn
-
whenThisMobKillsAnother
-
onMobTickUpdate
-
onPlayerCollidesWith
-
onInitialSpawn
-
hasAI
public boolean hasAI -
aiBase
-
aixml
-
breedable
public boolean breedable -
tameable
public boolean tameable -
breedTriggerItems
-
ranged
public boolean ranged -
rangedAttackItem
-
rangedItemType
-
rangedAttackInterval
public int rangedAttackInterval -
rangedAttackRadius
public double rangedAttackRadius -
spawnThisMob
public boolean spawnThisMob -
doesDespawnWhenIdle
public boolean doesDespawnWhenIdle -
spawningCondition
-
spawningProbability
public int spawningProbability -
mobSpawningType
-
minNumberOfMobsPerGroup
public int minNumberOfMobsPerGroup -
maxNumberOfMobsPerGroup
public int maxNumberOfMobsPerGroup -
restrictionBiomes
-
spawnInDungeons
public boolean spawnInDungeons -
raidSpawnsCount
public int[] raidSpawnsCount
-
-
Constructor Details
-
LivingEntity
-
-
Method Details
-
getEntityModel
- Specified by:
getEntityModel
in interfaceIEntityWithModel
-
getBaseTypesProvided
- Specified by:
getBaseTypesProvided
in interfaceICommonType
-
getCreativeTabs
- Specified by:
getCreativeTabs
in interfaceITabContainedElement
-
generateModElementPicture
- Overrides:
generateModElementPicture
in classGeneratableElement
- 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
Description copied from class:GeneratableElement
Override this to add additional data to the element data model- Overrides:
getAdditionalTemplateData
in classGeneratableElement
- Returns:
- null if no additional data, or IAdditionalTemplateDataProvider implementation
-
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
-
getIconForMCItem
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 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.
-