public class FabricBlockSettings
extends net.minecraft.block.AbstractBlock.Settings
To use it, simply replace Block.Settings.of() with FabricBlockSettings.of().
Modifier | Constructor and Description |
---|---|
protected |
FabricBlockSettings(net.minecraft.block.AbstractBlock.Settings settings) |
protected |
FabricBlockSettings(net.minecraft.block.Material material,
net.minecraft.block.MaterialColor color) |
Modifier and Type | Method and Description |
---|---|
FabricBlockSettings |
air() |
FabricBlockSettings |
allowsSpawning(net.minecraft.block.AbstractBlock.TypedContextPredicate<net.minecraft.entity.EntityType<?>> predicate) |
FabricBlockSettings |
blockVision(net.minecraft.block.AbstractBlock.ContextPredicate predicate) |
FabricBlockSettings |
breakByHand(boolean breakByHand)
Makes the block breakable by any tool if
breakByHand is set to true. |
FabricBlockSettings |
breakByTool(net.minecraft.tag.Tag<net.minecraft.item.Item> tag)
Please make the block require a tool if you plan to disable drops and slow the breaking down using the
incorrect tool by using
requiresTool() . |
FabricBlockSettings |
breakByTool(net.minecraft.tag.Tag<net.minecraft.item.Item> tag,
int miningLevel)
Please make the block require a tool if you plan to disable drops and slow the breaking down using the
incorrect tool by using
requiresTool() . |
FabricBlockSettings |
breakInstantly() |
FabricBlockSettings |
collidable(boolean collidable) |
static FabricBlockSettings |
copyOf(net.minecraft.block.AbstractBlock.Settings settings) |
static FabricBlockSettings |
copyOf(net.minecraft.block.AbstractBlock block) |
FabricBlockSettings |
drops(net.minecraft.util.Identifier dropTableId) |
FabricBlockSettings |
dropsLike(net.minecraft.block.Block block) |
FabricBlockSettings |
dropsNothing() |
FabricBlockSettings |
dynamicBounds() |
FabricBlockSettings |
emissiveLighting(net.minecraft.block.AbstractBlock.ContextPredicate predicate) |
FabricBlockSettings |
hardness(float hardness) |
FabricBlockSettings |
jumpVelocityMultiplier(float jumpVelocityMultiplier) |
FabricBlockSettings |
lightLevel(int lightLevel)
Deprecated.
Please use
luminance(int) . |
FabricBlockSettings |
lightLevel(ToIntFunction<net.minecraft.block.BlockState> levelFunction)
Deprecated.
Please use
luminance(ToIntFunction) . |
FabricBlockSettings |
luminance(int luminance) |
FabricBlockSettings |
luminance(ToIntFunction<net.minecraft.block.BlockState> luminanceFunction) |
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 |
postProcess(net.minecraft.block.AbstractBlock.ContextPredicate predicate) |
FabricBlockSettings |
requiresTool()
Make the block require tool to drop and slows down mining speed if the incorrect tool is used.
|
FabricBlockSettings |
resistance(float resistance) |
FabricBlockSettings |
slipperiness(float value) |
FabricBlockSettings |
solidBlock(net.minecraft.block.AbstractBlock.ContextPredicate predicate) |
FabricBlockSettings |
sounds(net.minecraft.sound.BlockSoundGroup group) |
FabricBlockSettings |
strength(float strength) |
FabricBlockSettings |
strength(float hardness,
float resistance) |
FabricBlockSettings |
suffocates(net.minecraft.block.AbstractBlock.ContextPredicate predicate) |
FabricBlockSettings |
ticksRandomly() |
FabricBlockSettings |
velocityMultiplier(float velocityMultiplier) |
protected FabricBlockSettings(net.minecraft.block.Material material, net.minecraft.block.MaterialColor color)
protected FabricBlockSettings(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 copyOf(net.minecraft.block.AbstractBlock block)
public static FabricBlockSettings copyOf(net.minecraft.block.AbstractBlock.Settings settings)
public FabricBlockSettings noCollision()
noCollision
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings nonOpaque()
nonOpaque
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings slipperiness(float value)
slipperiness
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings velocityMultiplier(float velocityMultiplier)
velocityMultiplier
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings jumpVelocityMultiplier(float jumpVelocityMultiplier)
jumpVelocityMultiplier
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings sounds(net.minecraft.sound.BlockSoundGroup group)
sounds
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings lightLevel(ToIntFunction<net.minecraft.block.BlockState> levelFunction)
luminance(ToIntFunction)
.public FabricBlockSettings luminance(ToIntFunction<net.minecraft.block.BlockState> luminanceFunction)
luminance
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings strength(float hardness, float resistance)
strength
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings breakInstantly()
breakInstantly
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings strength(float strength)
strength
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings ticksRandomly()
ticksRandomly
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings dynamicBounds()
dynamicBounds
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings dropsNothing()
dropsNothing
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings dropsLike(net.minecraft.block.Block block)
dropsLike
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings air()
air
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings allowsSpawning(net.minecraft.block.AbstractBlock.TypedContextPredicate<net.minecraft.entity.EntityType<?>> predicate)
allowsSpawning
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings solidBlock(net.minecraft.block.AbstractBlock.ContextPredicate predicate)
solidBlock
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings suffocates(net.minecraft.block.AbstractBlock.ContextPredicate predicate)
suffocates
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings blockVision(net.minecraft.block.AbstractBlock.ContextPredicate predicate)
blockVision
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings postProcess(net.minecraft.block.AbstractBlock.ContextPredicate predicate)
postProcess
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings emissiveLighting(net.minecraft.block.AbstractBlock.ContextPredicate predicate)
emissiveLighting
in class net.minecraft.block.AbstractBlock.Settings
@Deprecated public FabricBlockSettings lightLevel(int lightLevel)
luminance(int)
.public FabricBlockSettings luminance(int luminance)
public FabricBlockSettings hardness(float hardness)
public FabricBlockSettings resistance(float resistance)
public FabricBlockSettings drops(net.minecraft.util.Identifier dropTableId)
public FabricBlockSettings requiresTool()
requiresTool
in class net.minecraft.block.AbstractBlock.Settings
public FabricBlockSettings materialColor(net.minecraft.block.MaterialColor color)
public FabricBlockSettings materialColor(net.minecraft.util.DyeColor color)
public FabricBlockSettings collidable(boolean collidable)
public FabricBlockSettings breakByHand(boolean breakByHand)
breakByHand
is set to true.public FabricBlockSettings breakByTool(net.minecraft.tag.Tag<net.minecraft.item.Item> tag, int miningLevel)
requiresTool()
.public FabricBlockSettings breakByTool(net.minecraft.tag.Tag<net.minecraft.item.Item> tag)
requiresTool()
.