Package net.mcreator.element.types
Class Block
java.lang.Object
net.mcreator.element.GeneratableElement
net.mcreator.element.types.Block
- All Implemented Interfaces:
IBlock,IBlockWithBoundingBox,ICommonType,IItem,IItemWithModel,IMCItemProvider,ISpecialInfoHolder,ITabContainedElement
public class Block
extends GeneratableElement
implements IBlock, IItemWithModel, ITabContainedElement, ISpecialInfoHolder, IBlockWithBoundingBox
-
Nested Class Summary
Nested ClassesNested 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 TypeFieldDescriptionbooleanbooleanbooleanbooleanbooleanintbooleanbooleandoubleintintintintintintintintintbooleandoublebooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanintintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleandoubleintintintintintbooleanbooleanintbooleandoubleintbooleandoubledoublebooleanintbooleanbooleanintintFields 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.booleanbooleanbooleanhasDrops()booleanbooleanbooleanThis method determines what MCItems are provided by this generatable elementintbooleanbooleanbooleanMethods 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, 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
-
texture
-
textureTop
-
textureLeft
-
textureFront
-
textureRight
-
textureBack
-
renderType
public int renderType -
customModelName
-
rotationMode
public int rotationMode -
enablePitch
public boolean enablePitch -
emissiveRendering
public boolean emissiveRendering -
displayFluidOverlay
public boolean displayFluidOverlay -
animations
-
itemTexture
-
particleTexture
-
blockBase
-
blockSetType
-
pottedPlant
-
tintType
-
isItemTinted
public boolean isItemTinted -
hasTransparency
public boolean hasTransparency -
connectedSides
public boolean connectedSides -
transparencyType
-
disableOffset
public boolean disableOffset -
boundingBoxes
-
customProperties
-
name
-
specialInformation
-
hardness
public double hardness -
resistance
public double resistance -
hasGravity
public boolean hasGravity -
isWaterloggable
public boolean isWaterloggable -
hasBlockItem
public boolean hasBlockItem -
maxStackSize
public int maxStackSize -
rarity
-
immuneToFire
public boolean immuneToFire -
creativeTabs
-
destroyTool
-
customDrop
-
dropAmount
public int dropAmount -
xpAmountMin
public int xpAmountMin -
xpAmountMax
public int xpAmountMax -
useLootTableForDrops
public boolean useLootTableForDrops -
requiresCorrectTool
public boolean requiresCorrectTool -
enchantPowerBonus
public double enchantPowerBonus -
plantsGrowOn
public boolean plantsGrowOn -
canRedstoneConnect
public boolean canRedstoneConnect -
lightOpacity
public int lightOpacity -
tickRate
public int tickRate -
tickRandomly
public boolean tickRandomly -
isReplaceable
public boolean isReplaceable -
canProvidePower
public boolean canProvidePower -
emittedRedstonePower
-
colorOnMap
-
noteBlockInstrument
-
creativePickItem
-
offsetType
-
aiPathNodeType
-
beaconColorModifier
-
strippingResult
-
ignitedByLava
public boolean ignitedByLava -
flammability
public int flammability -
fireSpreadSpeed
public int fireSpreadSpeed -
isLadder
public boolean isLadder -
slipperiness
public double slipperiness -
speedFactor
public double speedFactor -
jumpFactor
public double jumpFactor -
reactionToPushing
-
isNotColidable
public boolean isNotColidable -
isCustomSoundType
public boolean isCustomSoundType -
soundOnStep
-
breakSound
-
fallSound
-
hitSound
-
placeSound
-
stepSound
-
luminance
public int luminance -
unbreakable
public boolean unbreakable -
vanillaToolTier
-
additionalHarvestCondition
-
placingCondition
-
isBonemealable
public boolean isBonemealable -
isBonemealTargetCondition
-
bonemealSuccessCondition
-
onBonemealSuccess
-
sensitiveToVibration
public boolean sensitiveToVibration -
vibrationalEvents
-
vibrationSensitivityRadius
-
canReceiveVibrationCondition
-
onReceivedVibration
-
hasInventory
public boolean hasInventory -
guiBoundTo
-
openGUIOnRightClick
public boolean openGUIOnRightClick -
inventorySize
public int inventorySize -
inventoryStackSize
public int inventoryStackSize -
inventoryDropWhenDestroyed
public boolean inventoryDropWhenDestroyed -
inventoryComparatorPower
public boolean inventoryComparatorPower -
inventoryOutSlotIDs
-
inventoryInSlotIDs
-
inventoryAutomationTakeCondition
-
inventoryAutomationPlaceCondition
-
hasEnergyStorage
public boolean hasEnergyStorage -
energyInitial
public int energyInitial -
energyCapacity
public int energyCapacity -
energyMaxReceive
public int energyMaxReceive -
energyMaxExtract
public int energyMaxExtract -
isFluidTank
public boolean isFluidTank -
fluidCapacity
public int fluidCapacity -
fluidRestrictions
-
onRightClicked
-
onBlockAdded
-
onNeighbourBlockChanges
-
onTickUpdate
-
onRandomUpdateEvent
-
onDestroyedByPlayer
-
onDestroyedByExplosion
-
onStartToDestroy
-
onEntityCollides
-
onEntityWalksOn
-
onBlockPlayedBy
-
onRedstoneOn
-
onRedstoneOff
-
onHitByProjectile
-
onEntityFallsOn
-
generateFeature
public boolean generateFeature -
restrictionBiomes
-
blocksToReplace
-
generationShape
-
frequencyPerChunks
public int frequencyPerChunks -
frequencyOnChunk
public int frequencyOnChunk -
minGenerateHeight
public int minGenerateHeight -
maxGenerateHeight
public int maxGenerateHeight
-
-
Constructor Details
-
Block
-
-
Method Details
-
renderType
public int renderType() -
hasCustomDrop
public boolean hasCustomDrop() -
generateLootTable
public boolean generateLootTable() -
isBlockTinted
public boolean isBlockTinted() -
isDoubleBlock
public boolean isDoubleBlock()- Specified by:
isDoubleBlockin interfaceIBlock
-
shouldOpenGUIOnRightClick
public boolean shouldOpenGUIOnRightClick() -
shouldScheduleTick
public boolean shouldScheduleTick() -
shouldDisableOffset
public boolean shouldDisableOffset() -
hasDrops
public boolean hasDrops() -
isFullCube
public boolean isFullCube()- Specified by:
isFullCubein interfaceIBlockWithBoundingBox
-
getItemModel
- Specified by:
getItemModelin interfaceIItemWithModel
-
getTextureMap
- Specified by:
getTextureMapin interfaceIItemWithModel
-
getCreativeTabs
- Specified by:
getCreativeTabsin interfaceITabContainedElement
-
getValidBoundingBoxes
- Specified by:
getValidBoundingBoxesin interfaceIBlockWithBoundingBox
-
generateModElementPicture
- Overrides:
generateModElementPicturein classGeneratableElement- Returns:
- BufferedImage of mod element preview or null if default mod element icon should be used
-
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
-
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
-
getVibrationalEvents
-
textureTop
-
textureLeft
-
textureFront
-
textureRight
-
textureBack
-
getParticleTexture
-