Class LodestoneBlockProperties
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour.Properties
team.lodestar.lodestone.systems.block.LodestoneBlockProperties
public class LodestoneBlockProperties
extends net.minecraft.world.level.block.state.BlockBehaviour.Properties
An extension of Block Properties, allowing you to add
LodestoneThrowawayBlockData
Some of these values are optional; they only get added during datagen.-
Field Summary
Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour.Properties
canOcclude, destroyTime, drops, dynamicShape, emissiveRendering, explosionResistance, forceSolidOff, forceSolidOn, friction, hasCollision, hasPostProcess, ignitedByLava, instrument, isAir, isRandomlyTicking, isRedstoneConductor, isSuffocating, isValidSpawn, isViewBlocking, jumpFactor, lightEmission, liquid, lootTableSupplier, mapColor, offsetFunction, pushReaction, replaceable, requiredFeatures, requiresCorrectToolForDrops, soundType, spawnParticlesOnBreak, speedFactor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTag(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) final LodestoneBlockPropertiesaddTags(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>... tags) @NotNull LodestoneBlockPropertiesair()static LodestoneBlockPropertiescopy(net.minecraft.world.level.block.state.BlockBehaviour pBlockBehaviour) @NotNull LodestoneBlockPropertiesdestroyTime(float destroyTime) @NotNull LodestoneBlockPropertiesdropsLike(@NotNull net.minecraft.world.level.block.Block block) @NotNull LodestoneBlockProperties@NotNull LodestoneBlockPropertiesemissiveRendering(net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate) @NotNull LodestoneBlockPropertiesexplosionResistance(float explosionResistance) @NotNull LodestoneBlockProperties@NotNull LodestoneBlockPropertiesfriction(float friction) @NotNull LodestoneBlockPropertieshasPostProcess(net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate) @NotNull LodestoneBlockProperties@NotNull LodestoneBlockProperties@NotNull LodestoneBlockPropertiesinstrument(@NotNull net.minecraft.world.level.block.state.properties.NoteBlockInstrument p_282170_) @NotNull LodestoneBlockPropertiesisRedstoneConductor(net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate) @NotNull LodestoneBlockPropertiesisSuffocating(net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate) @NotNull LodestoneBlockPropertiesisValidSpawn(net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<net.minecraft.world.entity.EntityType<?>> predicate) @NotNull LodestoneBlockPropertiesisViewBlocking(net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate) @NotNull LodestoneBlockPropertiesjumpFactor(float factor) @NotNull LodestoneBlockPropertieslightLevel(@NotNull ToIntFunction<net.minecraft.world.level.block.state.BlockState> lightMap) @NotNull LodestoneBlockPropertiesliquid()@NotNull LodestoneBlockProperties@NotNull LodestoneBlockPropertiesmapColor(@NotNull Function<net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.material.MapColor> p_285406_) @NotNull LodestoneBlockPropertiesmapColor(@NotNull net.minecraft.world.item.DyeColor p_285331_) @NotNull LodestoneBlockPropertiesmapColor(@NotNull net.minecraft.world.level.material.MapColor p_285137_) needsAxe()needsHoe()@NotNull LodestoneBlockProperties@NotNull LodestoneBlockProperties@NotNull LodestoneBlockProperties@NotNull LodestoneBlockPropertiesstatic LodestoneBlockPropertiesof()@NotNull LodestoneBlockPropertiesoffsetType(net.minecraft.world.level.block.state.BlockBehaviour.OffsetType pOffsetType) @NotNull LodestoneBlockPropertiespushReaction(@NotNull net.minecraft.world.level.material.PushReaction p_278265_) @NotNull LodestoneBlockProperties@NotNull LodestoneBlockProperties@NotNull LodestoneBlockPropertiesrequiredFeatures(net.minecraft.world.flag.FeatureFlag @NotNull ... pRequiredFeatures) @NotNull LodestoneBlockPropertiessetRenderType(Supplier<Supplier<net.minecraft.client.renderer.RenderType>> renderType) @NotNull LodestoneBlockPropertiessound(@NotNull net.minecraft.world.level.block.SoundType type) @NotNull LodestoneBlockPropertiesspeedFactor(float factor) @NotNull LodestoneBlockPropertiesstrength(float strength) @NotNull LodestoneBlockPropertiesstrength(float destroyTime, float explosionResistance) Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour.Properties
forceSolidOff
-
Constructor Details
-
LodestoneBlockProperties
public LodestoneBlockProperties()
-
-
Method Details
-
of
-
copy
public static LodestoneBlockProperties copy(net.minecraft.world.level.block.state.BlockBehaviour pBlockBehaviour) -
addThrowawayData
public LodestoneBlockProperties addThrowawayData(Function<LodestoneThrowawayBlockData, LodestoneThrowawayBlockData> function) -
getThrowawayData
-
setCutoutRenderType
-
setRenderType
public LodestoneBlockProperties setRenderType(Supplier<Supplier<net.minecraft.client.renderer.RenderType>> renderType) -
addDatagenData
public LodestoneBlockProperties addDatagenData(Function<LodestoneDatagenBlockData, LodestoneDatagenBlockData> function) -
getDatagenData
-
addTag
public LodestoneBlockProperties addTag(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag) -
addTags
@SafeVarargs public final LodestoneBlockProperties addTags(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>... tags) -
hasInheritedLoot
-
needsPickaxe
-
needsAxe
-
needsShovel
-
needsHoe
-
needsStone
-
needsIron
-
needsDiamond
-
noCollission
- Overrides:
noCollissionin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
noOcclusion
- Overrides:
noOcclusionin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
friction
- Overrides:
frictionin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
speedFactor
- Overrides:
speedFactorin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
jumpFactor
- Overrides:
jumpFactorin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
sound
@NotNull public @NotNull LodestoneBlockProperties sound(@NotNull @NotNull net.minecraft.world.level.block.SoundType type) - Overrides:
soundin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
lightLevel
@NotNull public @NotNull LodestoneBlockProperties lightLevel(@NotNull @NotNull ToIntFunction<net.minecraft.world.level.block.state.BlockState> lightMap) - Overrides:
lightLevelin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
strength
@NotNull public @NotNull LodestoneBlockProperties strength(float destroyTime, float explosionResistance) - Overrides:
strengthin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
instabreak
- Overrides:
instabreakin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
strength
- Overrides:
strengthin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
randomTicks
- Overrides:
randomTicksin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
dynamicShape
- Overrides:
dynamicShapein classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
noLootTable
- Overrides:
noLootTablein classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
dropsLike
@NotNull public @NotNull LodestoneBlockProperties dropsLike(@NotNull @NotNull net.minecraft.world.level.block.Block block) - Overrides:
dropsLikein classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
lootFrom
@NotNull public @NotNull LodestoneBlockProperties lootFrom(@NotNull @NotNull Supplier<? extends net.minecraft.world.level.block.Block> blockIn) - Overrides:
lootFromin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
air
- Overrides:
airin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
isValidSpawn
@NotNull public @NotNull LodestoneBlockProperties isValidSpawn(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<net.minecraft.world.entity.EntityType<?>> predicate) - Overrides:
isValidSpawnin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
isRedstoneConductor
@NotNull public @NotNull LodestoneBlockProperties isRedstoneConductor(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate) - Overrides:
isRedstoneConductorin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
isSuffocating
@NotNull public @NotNull LodestoneBlockProperties isSuffocating(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate) - Overrides:
isSuffocatingin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
isViewBlocking
@NotNull public @NotNull LodestoneBlockProperties isViewBlocking(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate) - Overrides:
isViewBlockingin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
hasPostProcess
@NotNull public @NotNull LodestoneBlockProperties hasPostProcess(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate) - Overrides:
hasPostProcessin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
emissiveRendering
@NotNull public @NotNull LodestoneBlockProperties emissiveRendering(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate) - Overrides:
emissiveRenderingin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
requiresCorrectToolForDrops
- Overrides:
requiresCorrectToolForDropsin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
mapColor
@NotNull public @NotNull LodestoneBlockProperties mapColor(@NotNull @NotNull Function<net.minecraft.world.level.block.state.BlockState, net.minecraft.world.level.material.MapColor> p_285406_) - Overrides:
mapColorin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
mapColor
@NotNull public @NotNull LodestoneBlockProperties mapColor(@NotNull @NotNull net.minecraft.world.item.DyeColor p_285331_) - Overrides:
mapColorin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
mapColor
@NotNull public @NotNull LodestoneBlockProperties mapColor(@NotNull @NotNull net.minecraft.world.level.material.MapColor p_285137_) - Overrides:
mapColorin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
destroyTime
- Overrides:
destroyTimein classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
explosionResistance
- Overrides:
explosionResistancein classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
ignitedByLava
- Overrides:
ignitedByLavain classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
liquid
- Overrides:
liquidin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
forceSolidOn
- Overrides:
forceSolidOnin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
pushReaction
@NotNull public @NotNull LodestoneBlockProperties pushReaction(@NotNull @NotNull net.minecraft.world.level.material.PushReaction p_278265_) - Overrides:
pushReactionin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
offsetType
@NotNull public @NotNull LodestoneBlockProperties offsetType(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.OffsetType pOffsetType) - Overrides:
offsetTypein classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
noParticlesOnBreak
- Overrides:
noParticlesOnBreakin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
requiredFeatures
@NotNull public @NotNull LodestoneBlockProperties requiredFeatures(net.minecraft.world.flag.FeatureFlag @NotNull ... pRequiredFeatures) - Overrides:
requiredFeaturesin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
instrument
@NotNull public @NotNull LodestoneBlockProperties instrument(@NotNull @NotNull net.minecraft.world.level.block.state.properties.NoteBlockInstrument p_282170_) - Overrides:
instrumentin classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-
replaceable
- Overrides:
replaceablein classnet.minecraft.world.level.block.state.BlockBehaviour.Properties
-