Class QuiltBlockSettings
java.lang.Object
net.minecraft.block.AbstractBlock.Settings
org.quiltmc.qsl.block.extensions.api.QuiltBlockSettings
public class QuiltBlockSettings
extends net.minecraft.block.AbstractBlock.Settings
An extended variant of the
AbstractBlock.Settings class, which provides extra methods for customization.-
Field Summary
Fields inherited from class net.minecraft.block.AbstractBlock.Settings
CODEC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedQuiltBlockSettings(net.minecraft.block.AbstractBlock.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptionair()air(boolean isAir) allowsSpawning(net.minecraft.block.AbstractBlock.TypedContextPredicate<net.minecraft.entity.EntityType<?>> predicate) blockVision(net.minecraft.block.AbstractBlock.ContextPredicate predicate) collidable(boolean collidable) static QuiltBlockSettingscopyOf(net.minecraft.block.AbstractBlock block) static QuiltBlockSettingscopyOf(net.minecraft.block.AbstractBlock.Settings settings) static QuiltBlockSettingscreate()Creates a new instance of Quilt's block settings variant.drops(net.minecraft.registry.RegistryKey<net.minecraft.loot.LootTable> dropTableId) Sets the loot table identifier that this block will use when broken.dynamicBounds(boolean dynamicBounds) emissiveLighting(net.minecraft.block.AbstractBlock.ContextPredicate predicate) hardness(float hardness) instrument(net.minecraft.block.enums.NoteBlockInstrument instrument) jumpVelocityMultiplier(float jumpVelocityMultiplier) key(net.minecraft.registry.RegistryKey<net.minecraft.block.Block> key) lavaIgnitable(boolean ignitable) Sets whether this block can be set on fire by neighboring lava.liquid()liquid(boolean liquid) luminance(int luminance) Sets the luminance of the block.luminance(ToIntFunction<net.minecraft.block.BlockState> luminance) mapColor(net.minecraft.block.MapColor color) mapColor(net.minecraft.util.DyeColor dyeColor) nonSolid()Deprecated.nonSolid(boolean nonSolid) offsetType(net.minecraft.block.AbstractBlock.OffsetType offsetType) opaque(boolean opaque) pistonBehavior(net.minecraft.block.piston.PistonBehavior pistonBehavior) postProcess(net.minecraft.block.AbstractBlock.ContextPredicate predicate) replaceable(boolean replaceable) requiredFlags(net.minecraft.feature_flags.FeatureFlag... flags) requiredFlags(net.minecraft.feature_flags.FeatureFlagBitSet flags) requiresTool(boolean requiresTool) resistance(float resistance) slipperiness(float slipperiness) solid()solid(boolean solid) solidBlock(net.minecraft.block.AbstractBlock.ContextPredicate predicate) sounds(net.minecraft.sound.BlockSoundGroup soundGroup) spawnsDustParticles(boolean spawnsDustParticles) strength(float strength) strength(float hardness, float resistance) suffocates(net.minecraft.block.AbstractBlock.ContextPredicate predicate) ticksRandomly(boolean ticksRandomly) translationKey(String translationKey) velocityMultiplier(float velocityMultiplier) Methods inherited from class net.minecraft.block.AbstractBlock.Settings
copy, getLootTable, getTranslationKey, variantOf
-
Constructor Details
-
QuiltBlockSettings
protected QuiltBlockSettings() -
QuiltBlockSettings
protected QuiltBlockSettings(net.minecraft.block.AbstractBlock.Settings settings)
-
-
Method Details
-
create
Creates a new instance of Quilt's block settings variant.- Returns:
- the new instance
-
copyOf
@Contract(pure=true, value="!null -> new") public static QuiltBlockSettings copyOf(net.minecraft.block.AbstractBlock block) -
copyOf
@Contract(pure=true, value="!null -> new") public static QuiltBlockSettings copyOf(net.minecraft.block.AbstractBlock.Settings settings) -
noCollision
- Overrides:
noCollisionin classnet.minecraft.block.AbstractBlock.Settings
-
nonOpaque
- Overrides:
nonOpaquein classnet.minecraft.block.AbstractBlock.Settings
-
slipperiness
- Overrides:
slipperinessin classnet.minecraft.block.AbstractBlock.Settings
-
velocityMultiplier
- Overrides:
velocityMultiplierin classnet.minecraft.block.AbstractBlock.Settings
-
jumpVelocityMultiplier
- Overrides:
jumpVelocityMultiplierin classnet.minecraft.block.AbstractBlock.Settings
-
sounds
- Overrides:
soundsin classnet.minecraft.block.AbstractBlock.Settings
-
luminance
- Overrides:
luminancein classnet.minecraft.block.AbstractBlock.Settings
-
strength
- Overrides:
strengthin classnet.minecraft.block.AbstractBlock.Settings
-
breakInstantly
- Overrides:
breakInstantlyin classnet.minecraft.block.AbstractBlock.Settings
-
strength
- Overrides:
strengthin classnet.minecraft.block.AbstractBlock.Settings
-
ticksRandomly
- Overrides:
ticksRandomlyin classnet.minecraft.block.AbstractBlock.Settings
-
dynamicBounds
- Overrides:
dynamicBoundsin classnet.minecraft.block.AbstractBlock.Settings
-
dropsNothing
- Overrides:
dropsNothingin classnet.minecraft.block.AbstractBlock.Settings
-
lavaIgnitable
- Overrides:
lavaIgnitablein classnet.minecraft.block.AbstractBlock.Settings
-
liquid
- Overrides:
liquidin classnet.minecraft.block.AbstractBlock.Settings
-
solid
- Overrides:
solidin classnet.minecraft.block.AbstractBlock.Settings
-
nonSolid
Deprecated.- Overrides:
nonSolidin classnet.minecraft.block.AbstractBlock.Settings
-
pistonBehavior
- Overrides:
pistonBehaviorin classnet.minecraft.block.AbstractBlock.Settings
-
air
- Overrides:
airin classnet.minecraft.block.AbstractBlock.Settings
-
allowsSpawning
public QuiltBlockSettings allowsSpawning(net.minecraft.block.AbstractBlock.TypedContextPredicate<net.minecraft.entity.EntityType<?>> predicate) - Overrides:
allowsSpawningin classnet.minecraft.block.AbstractBlock.Settings
-
solidBlock
- Overrides:
solidBlockin classnet.minecraft.block.AbstractBlock.Settings
-
suffocates
- Overrides:
suffocatesin classnet.minecraft.block.AbstractBlock.Settings
-
blockVision
- Overrides:
blockVisionin classnet.minecraft.block.AbstractBlock.Settings
-
postProcess
- Overrides:
postProcessin classnet.minecraft.block.AbstractBlock.Settings
-
emissiveLighting
public QuiltBlockSettings emissiveLighting(net.minecraft.block.AbstractBlock.ContextPredicate predicate) - Overrides:
emissiveLightingin classnet.minecraft.block.AbstractBlock.Settings
-
toolRequired
- Overrides:
toolRequiredin classnet.minecraft.block.AbstractBlock.Settings
-
mapColor
- Overrides:
mapColorin classnet.minecraft.block.AbstractBlock.Settings
-
mapColor
- Overrides:
mapColorin classnet.minecraft.block.AbstractBlock.Settings
-
mapColor
@Contract("_->this") public QuiltBlockSettings mapColor(Function<net.minecraft.block.BlockState, net.minecraft.block.MapColor> function) - Overrides:
mapColorin classnet.minecraft.block.AbstractBlock.Settings
-
hardness
- Overrides:
hardnessin classnet.minecraft.block.AbstractBlock.Settings
-
resistance
- Overrides:
resistancein classnet.minecraft.block.AbstractBlock.Settings
-
offsetType
- Overrides:
offsetTypein classnet.minecraft.block.AbstractBlock.Settings
-
withoutDustParticles
- Overrides:
withoutDustParticlesin classnet.minecraft.block.AbstractBlock.Settings
-
requiredFlags
- Overrides:
requiredFlagsin classnet.minecraft.block.AbstractBlock.Settings
-
instrument
@Contract("_->this") public QuiltBlockSettings instrument(net.minecraft.block.enums.NoteBlockInstrument instrument) - Overrides:
instrumentin classnet.minecraft.block.AbstractBlock.Settings
-
replaceable
- Overrides:
replaceablein classnet.minecraft.block.AbstractBlock.Settings
-
key
- Overrides:
keyin classnet.minecraft.block.AbstractBlock.Settings
-
collidable
-
opaque
-
ticksRandomly
-
dynamicBounds
-
requiresTool
-
air
-
lavaIgnitable
Sets whether this block can be set on fire by neighboring lava.- Parameters:
ignitable-trueif this block can be set on fire by lava, orfalseotherwise- Returns:
thisbuilder- See Also:
-
liquid
-
nonSolid
-
solid
-
luminance
Sets the luminance of the block. The block will have this luminance regardless of its current state.- Parameters:
luminance- new luminance- Returns:
thisbuilder- See Also:
-
drops
public QuiltBlockSettings drops(net.minecraft.registry.RegistryKey<net.minecraft.loot.LootTable> dropTableId) Sets the loot table identifier that this block will use when broken.- Parameters:
dropTableId- the new loot table identifier- Returns:
thisbuilder
-
spawnsDustParticles
-
requiredFlags
-
replaceable
-
lootTable
public QuiltBlockSettings lootTable(Optional<net.minecraft.registry.RegistryKey<net.minecraft.loot.LootTable>> value) - Overrides:
lootTablein classnet.minecraft.block.AbstractBlock.Settings
-
translationKey
- Overrides:
translationKeyin classnet.minecraft.block.AbstractBlock.Settings
-