public static class Block.Properties
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
blocksMovement |
private float |
hardness |
private int |
harvestLevel |
private ToolType |
harvestTool |
private boolean |
isSolid |
private float |
jumpFactor |
private int |
lightValue |
private ResourceLocation |
lootTable |
private java.util.function.Supplier<ResourceLocation> |
lootTableSupplier |
private MaterialColor |
mapColor |
private Material |
material |
private float |
resistance |
private float |
slipperiness |
private SoundType |
soundType |
private float |
speedFactor |
private boolean |
ticksRandomly |
private boolean |
variableOpacity |
Modifier | Constructor and Description |
---|---|
private |
Properties(Material materialIn,
MaterialColor mapColorIn) |
private Material material
private MaterialColor mapColor
private boolean blocksMovement
private SoundType soundType
private int lightValue
private float resistance
private float hardness
private boolean ticksRandomly
private float slipperiness
private float speedFactor
private float jumpFactor
private ResourceLocation lootTable
private boolean isSolid
private boolean variableOpacity
private int harvestLevel
private ToolType harvestTool
private java.util.function.Supplier<ResourceLocation> lootTableSupplier
private Properties(Material materialIn, MaterialColor mapColorIn)
public static Block.Properties create(Material materialIn)
public static Block.Properties create(Material materialIn, DyeColor color)
public static Block.Properties create(Material materialIn, MaterialColor mapColorIn)
public static Block.Properties from(Block blockIn)
public Block.Properties doesNotBlockMovement()
public Block.Properties notSolid()
public Block.Properties slipperiness(float slipperinessIn)
public Block.Properties speedFactor(float factor)
public Block.Properties jumpFactor(float factor)
public Block.Properties sound(SoundType soundTypeIn)
public Block.Properties lightValue(int lightValueIn)
public Block.Properties hardnessAndResistance(float hardnessIn, float resistanceIn)
protected Block.Properties zeroHardnessAndResistance()
public Block.Properties hardnessAndResistance(float hardnessAndResistance)
public Block.Properties tickRandomly()
public Block.Properties variableOpacity()
public Block.Properties harvestLevel(int harvestLevel)
public Block.Properties harvestTool(ToolType harvestTool)
public Block.Properties noDrops()
public Block.Properties lootFrom(Block blockIn)