net.minecraft.block

public class AbstractBlock$Settings

net.minecraft.world.level.block.state.BlockBehaviour$Properties
net.minecraft.class_4970$class_2251
net.minecraft.block.AbstractBlock$Settings

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<AbstractBlock$Settings>
CODEC
field_46532
CODEC
private Function<BlockState, MapColor>
mapColor
field_10662
mapColorProvider
private boolean
hasCollision
field_10664
collidable
private BlockSoundGroup
soundType
field_10665
soundGroup
private ToIntFunction<BlockState>
lightEmission
field_10663
luminance
private float
explosionResistance
field_10660
resistance
private float
destroyTime
field_10669
hardness
private boolean
requiresCorrectToolForDrops
field_25185
toolRequired
private boolean
isRandomlyTicking
field_10661
randomTicks
private float
friction
field_10667
slipperiness
private float
speedFactor
field_23179
velocityMultiplier
private float
jumpFactor
field_21209
jumpVelocityMultiplier
private RegistryKey<Block>
id
field_54006
registryKey
private RegistryKeyedValue<Block, Optional<RegistryKey<LootTable>>>
drops
field_54007
lootTable
private RegistryKeyedValue<Block, String>
descriptionId
field_54008
translationKey
private boolean
canOcclude
field_20721
opaque
private boolean
isAir
field_23180
isAir
private boolean
ignitedByLava
field_43394
burnable
private boolean
liquid
field_44481
liquid
private boolean
forceSolidOff
field_44627
forceNotSolid
private boolean
forceSolidOn
field_44628
forceSolid
private PistonBehavior
pushReaction
field_43395
pistonBehavior
private boolean
spawnTerrainParticles
field_40341
blockBreakParticles
private NoteBlockInstrument
instrument
field_44629
instrument
private boolean
replaceable
field_44630
replaceable
private AbstractBlock$TypedContextPredicate<EntityType<?>>
isValidSpawn
field_23181
allowsSpawningPredicate
private AbstractBlock$ContextPredicate
isRedstoneConductor
field_23182
solidBlockPredicate
private AbstractBlock$ContextPredicate
isSuffocating
field_23183
suffocationPredicate
private AbstractBlock$ContextPredicate
isViewBlocking
field_23184
blockVisionPredicate
private AbstractBlock$ContextPredicate
hasPostProcess
field_23185
postProcessPredicate
private AbstractBlock$ContextPredicate
emissiveRendering
field_23186
emissiveLightingPredicate
private boolean
dynamicShape
field_10670
dynamicBounds
private FeatureSet
requiredFeatures
field_40342
requiredFeatures
private AbstractBlock$Offsetter
offsetFunction
field_42818
offsetter

Constructor summary

ModifierConstructor
private ()

Method summary

Modifier and TypeMethod
public static AbstractBlock$Settings
of()
method_9637()
create()
public static AbstractBlock$Settings
ofFullCopy(BlockBehaviour block)
method_9630(class_4970 arg0)
copy(AbstractBlock block)
public static AbstractBlock$Settings
ofLegacyCopy(BlockBehaviour block)
method_55226(class_4970 arg0)
copyShallow(AbstractBlock block)
public AbstractBlock$Settings
mapColor(DyeColor dyeColor)
method_51517(class_1767 arg0)
mapColor(DyeColor color)
public AbstractBlock$Settings
mapColor(MapColor mapColor)
method_31710(class_3620 arg0)
mapColor(MapColor color)
public AbstractBlock$Settings
mapColor(Function<BlockState, MapColor> mapColor)
method_51520(Function<class_2680, class_3620> arg0)
mapColor(Function<BlockState, MapColor> mapColorProvider)
public AbstractBlock$Settings
noCollision()
method_9634()
noCollision()
public AbstractBlock$Settings
noOcclusion()
method_22488()
nonOpaque()
public AbstractBlock$Settings
friction(float friction)
method_9628(float arg0)
slipperiness(float slipperiness)
public AbstractBlock$Settings
speedFactor(float speedFactor)
method_23351(float arg0)
velocityMultiplier(float velocityMultiplier)
public AbstractBlock$Settings
jumpFactor(float jumpFactor)
method_23352(float arg0)
jumpVelocityMultiplier(float jumpVelocityMultiplier)
public AbstractBlock$Settings
sound(SoundType soundType)
method_9626(class_2498 arg0)
sounds(BlockSoundGroup soundGroup)
public AbstractBlock$Settings
lightLevel(ToIntFunction<BlockState> lightEmission)
method_9631(ToIntFunction<class_2680> arg0)
luminance(ToIntFunction<BlockState> luminance)
public AbstractBlock$Settings
strength(float destroyTime, float explosionResistance)
method_9629(float arg0, float arg1)
strength(float hardness, float resistance)
public AbstractBlock$Settings
instabreak()
method_9618()
breakInstantly()
public AbstractBlock$Settings
strength(float destroyTime)
method_9632(float arg0)
strength(float strength)
public AbstractBlock$Settings
randomTicks()
method_9640()
ticksRandomly()
public AbstractBlock$Settings
dynamicShape()
method_9624()
dynamicBounds()
public AbstractBlock$Settings
noLootTable()
method_42327()
dropsNothing()
public AbstractBlock$Settings
overrideLootTable(Optional<ResourceKey<LootTable>> table)
method_63502(Optional<class_5321<class_52>> arg0)
lootTable(Optional<RegistryKey<LootTable>> lootTableKey)
protected Optional<RegistryKey<LootTable>>
effectiveDrops()
method_63505()
getLootTableKey()
public AbstractBlock$Settings
ignitedByLava()
method_50013()
burnable()
public AbstractBlock$Settings
liquid()
method_51177()
liquid()
public AbstractBlock$Settings
forceSolidOn()
method_51369()
solid()
public AbstractBlock$Settings
forceSolidOff()
method_51370()
notSolid()
public AbstractBlock$Settings
pushReaction(PushReaction pushReaction)
method_50012(class_3619 arg0)
pistonBehavior(PistonBehavior pistonBehavior)
public AbstractBlock$Settings
air()
method_26250()
air()
public AbstractBlock$Settings
isValidSpawn(BlockBehaviour$StateArgumentPredicate<EntityType<?>> isValidSpawn)
method_26235(class_4970$class_4972<class_1299<?>> arg0)
allowsSpawning(AbstractBlock$TypedContextPredicate<EntityType<?>> predicate)
public AbstractBlock$Settings
isRedstoneConductor(BlockBehaviour$StatePredicate isRedstoneConductor)
method_26236(class_4970$class_4973 arg0)
solidBlock(AbstractBlock$ContextPredicate predicate)
public AbstractBlock$Settings
isSuffocating(BlockBehaviour$StatePredicate isSuffocating)
method_26243(class_4970$class_4973 arg0)
suffocates(AbstractBlock$ContextPredicate predicate)
public AbstractBlock$Settings
isViewBlocking(BlockBehaviour$StatePredicate isViewBlocking)
method_26245(class_4970$class_4973 arg0)
blockVision(AbstractBlock$ContextPredicate predicate)
public AbstractBlock$Settings
hasPostProcess(BlockBehaviour$StatePredicate hasPostProcess)
method_26247(class_4970$class_4973 arg0)
postProcess(AbstractBlock$ContextPredicate predicate)
public AbstractBlock$Settings
emissiveRendering(BlockBehaviour$StatePredicate emissiveRendering)
method_26249(class_4970$class_4973 arg0)
emissiveLighting(AbstractBlock$ContextPredicate predicate)
public AbstractBlock$Settings
requiresCorrectToolForDrops()
method_29292()
requiresTool()
public AbstractBlock$Settings
destroyTime(float destroyTime)
method_36557(float arg0)
hardness(float hardness)
public AbstractBlock$Settings
explosionResistance(float explosionResistance)
method_36558(float arg0)
resistance(float resistance)
public AbstractBlock$Settings
offsetType(BlockBehaviour$OffsetType offsetType)
method_49229(class_4970$class_2250 arg0)
offset(AbstractBlock$OffsetType offsetType)
public AbstractBlock$Settings
noTerrainParticles()
method_45477()
noBlockBreakParticles()
public AbstractBlock$Settings
requiredFeatures(FeatureFlag... flags)
method_45476(class_7696... arg0)
requires(FeatureFlag... features)
public AbstractBlock$Settings
instrument(NoteBlockInstrument instrument)
method_51368(class_2766 arg0)
instrument(NoteBlockInstrument instrument)
public AbstractBlock$Settings
replaceable()
method_51371()
replaceable()
public AbstractBlock$Settings
setId(ResourceKey<Block> id)
method_63500(class_5321<class_2248> arg0)
registryKey(RegistryKey<Block> registryKey)
public AbstractBlock$Settings
overrideDescription(String descriptionId)
method_63501(String arg0)
overrideTranslationKey(String translationKey)
protected String
effectiveDescriptionId()
method_63506()
getTranslationKey()
private static Vec3d
lambda$offsetType$13(BlockState arg0, BlockPos arg1)
method_49230(class_2680 arg0, class_2338 arg1)
method_49230(BlockState state, BlockPos pos)
private static Vec3d
lambda$offsetType$12(BlockState arg0, BlockPos arg1)
method_49231(class_2680 arg0, class_2338 arg1)
method_49231(BlockState state, BlockPos pos)
private static MapColor
lambda$mapColor$11(MapColor arg0, BlockState arg1)
method_51519(class_3620 arg0, class_2680 arg1)
method_51519(MapColor arg0, BlockState state)
private static MapColor
lambda$mapColor$10(DyeColor arg0, BlockState arg1)
method_51518(class_1767 arg0, class_2680 arg1)
method_51518(DyeColor arg0, BlockState state)
private static boolean
lambda$new$9(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_26238(class_2680 arg0, class_1922 arg1, class_2338 arg2)
method_26238(BlockState state, BlockView world, BlockPos pos)
private static boolean
lambda$new$8(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_26244(class_2680 arg0, class_1922 arg1, class_2338 arg2)
method_26244(BlockState state, BlockView world, BlockPos pos)
private static boolean
lambda$new$7(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_26246(class_2680 arg0, class_1922 arg1, class_2338 arg2)
method_26246(BlockState state, BlockView world, BlockPos pos)
private static boolean
lambda$new$6(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_26248(class_2680 arg0, class_1922 arg1, class_2338 arg2)
method_26248(BlockState state, BlockView world, BlockPos pos)
private static boolean
lambda$new$5(BlockState arg0, BlockGetter arg1, BlockPos arg2, EntityType arg3)
method_26239(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_1299 arg3)
method_26239(BlockState state, BlockView world, BlockPos pos, EntityType type)
private static String
lambda$new$4(ResourceKey arg0)
method_63503(class_5321 arg0)
method_63503(RegistryKey registryKey)
private static Optional
lambda$new$3(ResourceKey arg0)
method_63504(class_5321 arg0)
method_63504(RegistryKey registryKey)
private static int
lambda$new$2(BlockState arg0)
method_26237(class_2680 arg0)
method_26237(BlockState state)
private static MapColor
lambda$new$1(BlockState arg0)
method_51521(class_2680 arg0)
method_51521(BlockState state)
private static AbstractBlock$Settings
lambda$static$0()
method_54098()
method_54098()