Class BlockBehaviour.Properties
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour.Properties
- Enclosing class:
BlockBehaviour
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
static final com.mojang.serialization.Codec
<BlockBehaviour.Properties> (package private) float
(package private) ResourceKey
<LootTable> Sets loot table information(package private) boolean
(package private) BlockBehaviour.StatePredicate
(package private) float
(package private) boolean
Deprecated.(package private) boolean
(package private) float
(package private) boolean
(package private) BlockBehaviour.StatePredicate
(package private) boolean
(package private) NoteBlockInstrument
(package private) boolean
(package private) boolean
(package private) BlockBehaviour.StatePredicate
(package private) BlockBehaviour.StatePredicate
(package private) BlockBehaviour.StateArgumentPredicate
<EntityType<?>> (package private) BlockBehaviour.StatePredicate
If it blocks vision on the client side.(package private) float
(package private) ToIntFunction
<BlockState> (package private) boolean
Deprecated.private Supplier
<ResourceKey<LootTable>> (package private) Function
<BlockState, MapColor> (package private) BlockBehaviour.OffsetFunction
(package private) PushReaction
(package private) boolean
(package private) FeatureFlagSet
(package private) boolean
(package private) SoundType
(package private) boolean
(package private) float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionair()
destroyTime
(float pDestroyTime) Deprecated.emissiveRendering
(BlockBehaviour.StatePredicate pEmissiveRendering) explosionResistance
(float pExplosionResistance) Deprecated.friction
(float pFriction) hasPostProcess
(BlockBehaviour.StatePredicate pHasPostProcess) instrument
(NoteBlockInstrument pInstrument) isRedstoneConductor
(BlockBehaviour.StatePredicate pIsRedstoneConductor) isSuffocating
(BlockBehaviour.StatePredicate pIsSuffocating) isValidSpawn
(BlockBehaviour.StateArgumentPredicate<EntityType<?>> pIsValidSpawn) isViewBlocking
(BlockBehaviour.StatePredicate pIsViewBlocking) If it blocks vision on the client side.jumpFactor
(float pJumpFactor) lightLevel
(ToIntFunction<BlockState> pLightEmission) liquid()
mapColor
(Function<BlockState, MapColor> pMapColor) static BlockBehaviour.Properties
of()
offsetType
(BlockBehaviour.OffsetType pOffsetType) static BlockBehaviour.Properties
ofFullCopy
(BlockBehaviour pBlockBehaviour) static BlockBehaviour.Properties
ofLegacyCopy
(BlockBehaviour pBlockBehaviour) Deprecated.pushReaction
(PushReaction pPushReaction) requiredFeatures
(FeatureFlag... pRequiredFeatures) speedFactor
(float pSpeedFactor) strength
(float pStrength) strength
(float pDestroyTime, float pExplosionResistance)
-
Field Details
-
CODEC
-
mapColor
Function<BlockState,MapColor> mapColor -
hasCollision
boolean hasCollision -
soundType
SoundType soundType -
lightEmission
ToIntFunction<BlockState> lightEmission -
explosionResistance
float explosionResistance -
destroyTime
float destroyTime -
requiresCorrectToolForDrops
boolean requiresCorrectToolForDrops -
isRandomlyTicking
boolean isRandomlyTicking -
friction
float friction -
speedFactor
float speedFactor -
jumpFactor
float jumpFactor -
drops
ResourceKey<LootTable> dropsSets loot table information -
canOcclude
boolean canOcclude -
isAir
boolean isAir -
ignitedByLava
boolean ignitedByLava -
liquid
Deprecated. -
forceSolidOff
Deprecated. -
forceSolidOn
boolean forceSolidOn -
pushReaction
PushReaction pushReaction -
spawnTerrainParticles
boolean spawnTerrainParticles -
instrument
NoteBlockInstrument instrument -
lootTableSupplier
-
replaceable
boolean replaceable -
isValidSpawn
BlockBehaviour.StateArgumentPredicate<EntityType<?>> isValidSpawn -
isRedstoneConductor
BlockBehaviour.StatePredicate isRedstoneConductor -
isSuffocating
BlockBehaviour.StatePredicate isSuffocating -
isViewBlocking
BlockBehaviour.StatePredicate isViewBlockingIf it blocks vision on the client side. -
hasPostProcess
BlockBehaviour.StatePredicate hasPostProcess -
emissiveRendering
BlockBehaviour.StatePredicate emissiveRendering -
dynamicShape
boolean dynamicShape -
requiredFeatures
FeatureFlagSet requiredFeatures -
offsetFunction
-
-
Constructor Details
-
Properties
private Properties()
-
-
Method Details
-
of
-
ofFullCopy
-
ofLegacyCopy
Deprecated. -
mapColor
-
mapColor
-
mapColor
-
noCollission
-
noOcclusion
-
friction
-
speedFactor
-
jumpFactor
-
sound
-
lightLevel
-
strength
-
instabreak
-
strength
-
randomTicks
-
dynamicShape
-
noLootTable
-
dropsLike
Deprecated. -
lootFrom
-
ignitedByLava
-
liquid
-
forceSolidOn
-
forceSolidOff
Deprecated. -
pushReaction
-
air
-
isValidSpawn
public BlockBehaviour.Properties isValidSpawn(BlockBehaviour.StateArgumentPredicate<EntityType<?>> pIsValidSpawn) -
isRedstoneConductor
public BlockBehaviour.Properties isRedstoneConductor(BlockBehaviour.StatePredicate pIsRedstoneConductor) -
isSuffocating
-
isViewBlocking
If it blocks vision on the client side. -
hasPostProcess
-
emissiveRendering
public BlockBehaviour.Properties emissiveRendering(BlockBehaviour.StatePredicate pEmissiveRendering) -
requiresCorrectToolForDrops
-
destroyTime
-
explosionResistance
-
offsetType
-
noTerrainParticles
-
requiredFeatures
-
instrument
-
replaceable
-