Package net.minecraft.block
Class AbstractBlock.Properties
- java.lang.Object
-
- net.minecraft.block.AbstractBlock.Properties
-
- Enclosing class:
- AbstractBlock
public static class AbstractBlock.Properties extends java.lang.Object
-
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
Properties(Material p_i241199_1_, java.util.function.Function<BlockState,MaterialColor> p_i241199_2_)
private
Properties(Material p_i48616_1_, MaterialColor p_i48616_2_)
-
Method Summary
-
-
-
Field Detail
-
material
private Material material
-
materialColor
private java.util.function.Function<BlockState,MaterialColor> materialColor
-
hasCollision
private boolean hasCollision
-
soundType
private SoundType soundType
-
lightEmission
private java.util.function.ToIntFunction<BlockState> lightEmission
-
explosionResistance
private float explosionResistance
-
destroyTime
private float destroyTime
-
requiresCorrectToolForDrops
private boolean requiresCorrectToolForDrops
-
isRandomlyTicking
private boolean isRandomlyTicking
-
friction
private float friction
-
speedFactor
private float speedFactor
-
jumpFactor
private float jumpFactor
-
drops
private ResourceLocation drops
-
canOcclude
private boolean canOcclude
-
isAir
private boolean isAir
-
harvestLevel
private int harvestLevel
-
harvestTool
private ToolType harvestTool
-
lootTableSupplier
private java.util.function.Supplier<ResourceLocation> lootTableSupplier
-
isValidSpawn
private AbstractBlock.IExtendedPositionPredicate<EntityType<?>> isValidSpawn
-
isRedstoneConductor
private AbstractBlock.IPositionPredicate isRedstoneConductor
-
isSuffocating
private AbstractBlock.IPositionPredicate isSuffocating
-
isViewBlocking
private AbstractBlock.IPositionPredicate isViewBlocking
-
hasPostProcess
private AbstractBlock.IPositionPredicate hasPostProcess
-
emissiveRendering
private AbstractBlock.IPositionPredicate emissiveRendering
-
dynamicShape
private boolean dynamicShape
-
-
Constructor Detail
-
Properties
private Properties(Material p_i48616_1_, MaterialColor p_i48616_2_)
-
Properties
private Properties(Material p_i241199_1_, java.util.function.Function<BlockState,MaterialColor> p_i241199_2_)
-
-
Method Detail
-
of
public static AbstractBlock.Properties of(Material p_200945_0_)
-
of
public static AbstractBlock.Properties of(Material p_200952_0_, DyeColor p_200952_1_)
-
of
public static AbstractBlock.Properties of(Material p_200949_0_, MaterialColor p_200949_1_)
-
of
public static AbstractBlock.Properties of(Material p_235836_0_, java.util.function.Function<BlockState,MaterialColor> p_235836_1_)
-
copy
public static AbstractBlock.Properties copy(AbstractBlock p_200950_0_)
-
noCollission
public AbstractBlock.Properties noCollission()
-
noOcclusion
public AbstractBlock.Properties noOcclusion()
-
harvestLevel
public AbstractBlock.Properties harvestLevel(int harvestLevel)
-
harvestTool
public AbstractBlock.Properties harvestTool(ToolType harvestTool)
-
getHarvestLevel
public int getHarvestLevel()
-
getHarvestTool
public ToolType getHarvestTool()
-
friction
public AbstractBlock.Properties friction(float p_200941_1_)
-
speedFactor
public AbstractBlock.Properties speedFactor(float p_226897_1_)
-
jumpFactor
public AbstractBlock.Properties jumpFactor(float p_226898_1_)
-
sound
public AbstractBlock.Properties sound(SoundType p_200947_1_)
-
lightLevel
public AbstractBlock.Properties lightLevel(java.util.function.ToIntFunction<BlockState> p_235838_1_)
-
strength
public AbstractBlock.Properties strength(float p_200948_1_, float p_200948_2_)
-
instabreak
public AbstractBlock.Properties instabreak()
-
strength
public AbstractBlock.Properties strength(float p_200943_1_)
-
randomTicks
public AbstractBlock.Properties randomTicks()
-
dynamicShape
public AbstractBlock.Properties dynamicShape()
-
noDrops
public AbstractBlock.Properties noDrops()
-
dropsLike
@Deprecated public AbstractBlock.Properties dropsLike(Block p_222379_1_)
Deprecated.
-
lootFrom
public AbstractBlock.Properties lootFrom(java.util.function.Supplier<? extends Block> blockIn)
-
air
public AbstractBlock.Properties air()
-
isValidSpawn
public AbstractBlock.Properties isValidSpawn(AbstractBlock.IExtendedPositionPredicate<EntityType<?>> p_235827_1_)
-
isRedstoneConductor
public AbstractBlock.Properties isRedstoneConductor(AbstractBlock.IPositionPredicate p_235828_1_)
-
isSuffocating
public AbstractBlock.Properties isSuffocating(AbstractBlock.IPositionPredicate p_235842_1_)
-
isViewBlocking
public AbstractBlock.Properties isViewBlocking(AbstractBlock.IPositionPredicate p_235847_1_)
-
hasPostProcess
public AbstractBlock.Properties hasPostProcess(AbstractBlock.IPositionPredicate p_235852_1_)
-
emissiveRendering
public AbstractBlock.Properties emissiveRendering(AbstractBlock.IPositionPredicate p_235856_1_)
-
requiresCorrectToolForDrops
public AbstractBlock.Properties requiresCorrectToolForDrops()
-
-