@Immutable public final class BlockType extends Object implements ItemType
| Modifier and Type | Method and Description |
|---|---|
boolean |
blocksMotion() |
boolean |
blocksWater() |
boolean |
breaksFlowing() |
boolean |
canBeSilkTouched() |
ItemStack |
createItem(int amount,
Object... metadata) |
void |
forEachPermutation(Consumer<BlockState> action) |
BlockType |
getBlock() |
AxisAlignedBB |
getBoundingBox() |
int |
getBurnAbility() |
int |
getBurnChance() |
BlockState |
getDefaultState() |
int |
getFilterLevel() |
float |
getFriction() |
float |
getHardness() |
Identifier |
getId() |
int |
getMaximumStackSize() |
Class<?> |
getMetadataClass() |
float |
getResistance() |
List<BlockState> |
getStates() |
TierType |
getTierType() |
ToolType |
getToolType() |
Set<BlockTrait<?>> |
getTraits() |
int |
getTranslucency() |
boolean |
isBlock() |
boolean |
isDiggable() |
boolean |
isFloodable() |
boolean |
isPlaceable() |
boolean |
isPowerSource() |
boolean |
isReplaceable() |
boolean |
isSolid() |
boolean |
isTransparent() |
static BlockType |
of(Identifier id,
BlockTrait<?>... traits) |
boolean |
waterlogsSource() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateItem, getArmorPoints, getAttackDamage, getBlockType, getDurability, getFuelTime, getToughness, isStackablepublic Identifier getId()
public Set<BlockTrait<?>> getTraits()
public List<BlockState> getStates()
public BlockState getDefaultState()
public void forEachPermutation(Consumer<BlockState> action)
public static BlockType of(Identifier id, BlockTrait<?>... traits)
public boolean isPlaceable()
isPlaceable in interface ItemTypepublic boolean blocksMotion()
public boolean blocksWater()
public boolean isFloodable()
public boolean isReplaceable()
public boolean isTransparent()
public int getTranslucency()
public int getFilterLevel()
public boolean isSolid()
public boolean isDiggable()
public int getBurnChance()
public int getBurnAbility()
public float getHardness()
public float getFriction()
public float getResistance()
@Nullable public Class<?> getMetadataClass()
getMetadataClass in interface ItemTypepublic int getMaximumStackSize()
getMaximumStackSize in interface ItemTypepublic ItemStack createItem(int amount, Object... metadata)
createItem in interface ItemType@Nullable public ToolType getToolType()
getToolType in interface ItemType@Nullable public TierType getTierType()
getTierType in interface ItemTypepublic AxisAlignedBB getBoundingBox()
public boolean isPowerSource()
public boolean canBeSilkTouched()
public boolean waterlogsSource()
public boolean breaksFlowing()
Copyright © 2021. All rights reserved.