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 classes/interfaces inherited from class net.mcreator.element.GeneratableElement
GeneratableElement.GSONAdapter, GeneratableElement.Unknown
Nested classes/interfaces inherited from interface net.mcreator.element.types.interfaces.IBlockWithBoundingBox
IBlockWithBoundingBox.BoxEntry
-
Field Summary
Modifier and TypeFieldDescriptionboolean
boolean
boolean
boolean
boolean
int
boolean
boolean
double
int
int
int
int
int
int
int
int
int
boolean
double
boolean
boolean
boolean
boolean
boolean
boolean
int
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
double
int
int
int
int
boolean
boolean
int
boolean
double
int
double
double
boolean
int
boolean
boolean
Fields inherited from class net.mcreator.element.GeneratableElement
formatVersion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
WARNING: Calls to this method are generally not thread safe.boolean
boolean
boolean
boolean
This method determines what MCItems are provided by this generatable elementint
boolean
boolean
boolean
Methods 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.IBlockWithBoundingBox
isBoundingBoxEmpty, negativeBoundingBoxes, positiveBoundingBoxes
Methods inherited from interface net.mcreator.element.types.interfaces.IMCItemProvider
getIconForMCItem
Methods inherited from interface net.mcreator.element.types.interfaces.ISpecialInfoHolder
getFixedSpecialInformation
-
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 -
itemTexture
-
particleTexture
-
blockBase
-
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 -
creativeTabs
-
destroyTool
-
customDrop
-
dropAmount
public int dropAmount -
useLootTableForDrops
public boolean useLootTableForDrops -
requiresCorrectTool
public boolean requiresCorrectTool -
enchantPowerBonus
public double enchantPowerBonus -
plantsGrowOn
public boolean plantsGrowOn -
canRedstoneConnect
public boolean canRedstoneConnect -
lightOpacity
public int lightOpacity -
material
-
tickRate
public int tickRate -
tickRandomly
public boolean tickRandomly -
isReplaceable
public boolean isReplaceable -
canProvidePower
public boolean canProvidePower -
emittedRedstonePower
-
colorOnMap
-
creativePickItem
-
offsetType
-
aiPathNodeType
-
beaconColorModifier
-
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
-
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
-
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
-
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:
isDoubleBlock
in interfaceIBlock
-
shouldOpenGUIOnRightClick
public boolean shouldOpenGUIOnRightClick() -
shouldScheduleTick
public boolean shouldScheduleTick() -
shouldDisableOffset
public boolean shouldDisableOffset() -
isFullCube
public boolean isFullCube()- Specified by:
isFullCube
in interfaceIBlockWithBoundingBox
-
getItemModel
- Specified by:
getItemModel
in interfaceIItemWithModel
-
getTextureMap
- Specified by:
getTextureMap
in interfaceIItemWithModel
-
getCreativeTabs
- Specified by:
getCreativeTabs
in interfaceITabContainedElement
-
getValidBoundingBoxes
- Specified by:
getValidBoundingBoxes
in interfaceIBlockWithBoundingBox
-
generateModElementPicture
- Overrides:
generateModElementPicture
in classGeneratableElement
- Returns:
- BufferedImage of mod element preview or null if default mod element icon should be used
-
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
-
getRenderType
- Specified by:
getRenderType
in interfaceIBlock
-
getBaseTypesProvided
- Specified by:
getBaseTypesProvided
in interfaceIBlock
- Specified by:
getBaseTypesProvided
in interfaceICommonType
- Specified by:
getBaseTypesProvided
in interfaceIItem
-
textureTop
-
textureLeft
-
textureFront
-
textureRight
-
textureBack
-
getParticleTexture
-