Package net.mcreator.element.types
Class Tool
java.lang.Object
net.mcreator.element.GeneratableElement
net.mcreator.element.types.Tool
- All Implemented Interfaces:
ICommonType
,IItem
,IItemWithModel
,IItemWithTexture
,IMCItemProvider
,ISpecialInfoHolder
,ITabContainedElement
public class Tool
extends GeneratableElement
implements IItem, IItemWithModel, ITabContainedElement, ISpecialInfoHolder, IItemWithTexture
-
Nested Class Summary
Nested classes/interfaces inherited from class net.mcreator.element.GeneratableElement
GeneratableElement.GSONAdapter, GeneratableElement.Unknown
-
Field Summary
Modifier and TypeFieldDescriptiondouble
int
boolean
double
double
int
boolean
int
boolean
int
Fields inherited from class net.mcreator.element.GeneratableElement
formatVersion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionWARNING: Calls to this method are generally not thread safe.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.IItem
getBaseTypesProvided
Methods inherited from interface net.mcreator.element.types.interfaces.IMCItemProvider
getIconForMCItem
Methods inherited from interface net.mcreator.element.types.interfaces.ISpecialInfoHolder
getFixedSpecialInformation
-
Field Details
-
toolType
-
renderType
public int renderType -
blockingRenderType
public int blockingRenderType -
texture
-
customModelName
-
blockingModelName
-
name
-
specialInformation
-
creativeTabs
-
efficiency
public double efficiency -
attackSpeed
public double attackSpeed -
enchantability
public int enchantability -
damageVsEntity
public double damageVsEntity -
usageCount
public int usageCount -
glowCondition
-
repairItems
-
immuneToFire
public boolean immuneToFire -
blockDropsTier
-
additionalDropCondition
-
blocksAffected
-
stayInGridWhenCrafting
public boolean stayInGridWhenCrafting -
damageOnCrafting
public boolean damageOnCrafting -
onRightClickedInAir
-
onRightClickedOnBlock
-
onCrafted
-
onEntityHitWith
-
onItemInInventoryTick
-
onItemInUseTick
-
onBlockDestroyedWithTool
-
onEntitySwing
-
-
Constructor Details
-
Tool
-
-
Method Details
-
generateModElementPicture
- Overrides:
generateModElementPicture
in classGeneratableElement
- Returns:
- BufferedImage of mod element preview or null if default mod element icon should be used
-
getItemModel
- Specified by:
getItemModel
in interfaceIItemWithModel
-
getBlockingModel
-
getTextureMap
- Specified by:
getTextureMap
in interfaceIItemWithModel
-
getBlockingTextureMap
-
getModels
-
getCreativeTabs
- Specified by:
getCreativeTabs
in interfaceITabContainedElement
-
getTexture
- Specified by:
getTexture
in interfaceIItemWithTexture
-
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
-