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
FieldsModifier and TypeFieldDescriptiondoubleintbooleandoubledoubleintbooleanintbooleanintFields inherited from class net.mcreator.element.GeneratableElement
formatVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWARNING: Calls to this method are generally not thread safe.booleanThis 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.IItem
getBaseTypesProvidedMethods inherited from interface net.mcreator.element.types.interfaces.IMCItemProvider
getIconForMCItemMethods inherited from interface net.mcreator.element.types.interfaces.ISpecialInfoHolder
getFixedSpecialInformation, hasSpecialInformation
-
Field Details
-
toolType
-
renderType
public int renderType -
blockingRenderType
public int blockingRenderType -
texture
-
customModelName
-
blockingModelName
-
guiTexture
-
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:
generateModElementPicturein classGeneratableElement- Returns:
- BufferedImage of mod element preview or null if default mod element icon should be used
-
hasGUITexture
public boolean hasGUITexture() -
getItemModel
- Specified by:
getItemModelin interfaceIItemWithModel
-
getBlockingModel
-
getTextureMap
- Specified by:
getTextureMapin interfaceIItemWithModel
-
getBlockingTextureMap
-
getModels
-
getCreativeTabs
- Specified by:
getCreativeTabsin interfaceITabContainedElement
-
getTexture
- Specified by:
getTexturein interfaceIItemWithTexture
-
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
-
getRepairItemsAsStringList
-