public class FabricBlockSettings extends Object
To use it, simply replace Block.Settings.create() with FabricBlockSettings.create() and add .build() at the end to return the vanilla Block.Settings instance beneath.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
FabricBlockSettings.ExtraData |
Modifier and Type | Field and Description |
---|---|
protected net.minecraft.block.AbstractBlock.Settings |
delegate |
Modifier | Constructor and Description |
---|---|
protected |
FabricBlockSettings(net.minecraft.block.AbstractBlock.Settings delegate) |
protected |
FabricBlockSettings(net.minecraft.block.Block base) |
protected |
FabricBlockSettings(net.minecraft.block.Material material,
net.minecraft.block.MaterialColor color) |
Modifier and Type | Method and Description |
---|---|
FabricBlockSettings |
breakByHand(boolean breakByHand) |
FabricBlockSettings |
breakByTool(net.minecraft.tag.Tag<net.minecraft.item.Item> tag) |
FabricBlockSettings |
breakByTool(net.minecraft.tag.Tag<net.minecraft.item.Item> tag,
int miningLevel) |
FabricBlockSettings |
breakInstantly() |
net.minecraft.block.AbstractBlock.Settings |
build() |
<T> T |
build(Function<net.minecraft.block.AbstractBlock.Settings,T> function) |
FabricBlockSettings |
collidable(boolean collidable) |
(package private) static FabricBlockSettings.ExtraData |
computeExtraData(net.minecraft.block.AbstractBlock.Settings settings) |
static FabricBlockSettings |
copy(net.minecraft.block.Block base) |
static FabricBlockSettings |
copyOf(net.minecraft.block.AbstractBlock.Settings settings) |
FabricBlockSettings |
drops(net.minecraft.util.Identifier dropTableId) |
FabricBlockSettings |
dropsLike(net.minecraft.block.Block block) |
FabricBlockSettings |
dropsNothing() |
FabricBlockSettings |
dynamicBounds() |
FabricBlockSettings |
friction(float friction)
Deprecated.
|
FabricBlockSettings |
hardness(float hardness) |
FabricBlockSettings |
lightLevel(int lightLevel) |
FabricBlockSettings |
materialColor(net.minecraft.util.DyeColor color) |
FabricBlockSettings |
materialColor(net.minecraft.block.MaterialColor color) |
FabricBlockSettings |
noCollision() |
FabricBlockSettings |
nonOpaque() |
static FabricBlockSettings |
of(net.minecraft.block.Material material) |
static FabricBlockSettings |
of(net.minecraft.block.Material material,
net.minecraft.util.DyeColor color) |
static FabricBlockSettings |
of(net.minecraft.block.Material material,
net.minecraft.block.MaterialColor color) |
FabricBlockSettings |
resistance(float resistance) |
FabricBlockSettings |
slipperiness(float value) |
FabricBlockSettings |
sounds(net.minecraft.sound.BlockSoundGroup group) |
FabricBlockSettings |
strength(float hardness,
float resistance) |
FabricBlockSettings |
ticksRandomly() |
protected FabricBlockSettings(net.minecraft.block.Material material, net.minecraft.block.MaterialColor color)
protected FabricBlockSettings(net.minecraft.block.Block base)
protected FabricBlockSettings(net.minecraft.block.AbstractBlock.Settings delegate)
static FabricBlockSettings.ExtraData computeExtraData(net.minecraft.block.AbstractBlock.Settings settings)
public static FabricBlockSettings of(net.minecraft.block.Material material)
public static FabricBlockSettings of(net.minecraft.block.Material material, net.minecraft.block.MaterialColor color)
public static FabricBlockSettings of(net.minecraft.block.Material material, net.minecraft.util.DyeColor color)
public static FabricBlockSettings copy(net.minecraft.block.Block base)
public static FabricBlockSettings copyOf(net.minecraft.block.AbstractBlock.Settings settings)
public FabricBlockSettings breakByHand(boolean breakByHand)
public FabricBlockSettings breakByTool(net.minecraft.tag.Tag<net.minecraft.item.Item> tag, int miningLevel)
public FabricBlockSettings breakByTool(net.minecraft.tag.Tag<net.minecraft.item.Item> tag)
public FabricBlockSettings materialColor(net.minecraft.block.MaterialColor color)
public FabricBlockSettings materialColor(net.minecraft.util.DyeColor color)
public FabricBlockSettings collidable(boolean collidable)
public FabricBlockSettings noCollision()
public FabricBlockSettings nonOpaque()
public FabricBlockSettings sounds(net.minecraft.sound.BlockSoundGroup group)
public FabricBlockSettings ticksRandomly()
public FabricBlockSettings lightLevel(int lightLevel)
public FabricBlockSettings hardness(float hardness)
public FabricBlockSettings resistance(float resistance)
public FabricBlockSettings strength(float hardness, float resistance)
public FabricBlockSettings breakInstantly()
public FabricBlockSettings dropsNothing()
public FabricBlockSettings dropsLike(net.minecraft.block.Block block)
public FabricBlockSettings drops(net.minecraft.util.Identifier dropTableId)
@Deprecated public FabricBlockSettings friction(float friction)
public FabricBlockSettings slipperiness(float value)
public FabricBlockSettings dynamicBounds()
public net.minecraft.block.AbstractBlock.Settings build()
public <T> T build(Function<net.minecraft.block.AbstractBlock.Settings,T> function)