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.
  • Constructor Details

    • LodestoneBlockProperties

      public LodestoneBlockProperties(net.minecraft.world.level.material.Material material, net.minecraft.world.level.material.MaterialColor color)
    • LodestoneBlockProperties

      public LodestoneBlockProperties(net.minecraft.world.level.material.Material material)
    • LodestoneBlockProperties

      public LodestoneBlockProperties(net.minecraft.world.level.material.Material pMaterial, Function<net.minecraft.world.level.block.state.BlockState,net.minecraft.world.level.material.MaterialColor> pMaterialColor)
  • Method Details

    • copy

      public static LodestoneBlockProperties copy(net.minecraft.world.level.block.state.BlockBehaviour pBlockBehaviour)
    • addThrowawayData

    • getThrowawayData

      public LodestoneThrowawayBlockData getThrowawayData()
    • setCutoutRenderType

      public LodestoneBlockProperties setCutoutRenderType()
    • setRenderType

      public LodestoneBlockProperties setRenderType(Supplier<Supplier<net.minecraft.client.renderer.RenderType>> renderType)
    • addDatagenData

    • getDatagenData

      public LodestoneDatagenBlockData 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

      public LodestoneBlockProperties hasInheritedLoot()
    • needsPickaxe

      public LodestoneBlockProperties needsPickaxe()
    • needsAxe

      public LodestoneBlockProperties needsAxe()
    • needsShovel

      public LodestoneBlockProperties needsShovel()
    • needsHoe

      public LodestoneBlockProperties needsHoe()
    • needsStone

      public LodestoneBlockProperties needsStone()
    • needsIron

      public LodestoneBlockProperties needsIron()
    • needsDiamond

      public LodestoneBlockProperties needsDiamond()
    • noCollission

      @NotNull public @NotNull LodestoneBlockProperties noCollission()
      Overrides:
      noCollission in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • noOcclusion

      @NotNull public @NotNull LodestoneBlockProperties noOcclusion()
      Overrides:
      noOcclusion in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • friction

      @NotNull public @NotNull LodestoneBlockProperties friction(float friction)
      Overrides:
      friction in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • speedFactor

      @NotNull public @NotNull LodestoneBlockProperties speedFactor(float factor)
      Overrides:
      speedFactor in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • jumpFactor

      @NotNull public @NotNull LodestoneBlockProperties jumpFactor(float factor)
      Overrides:
      jumpFactor in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • sound

      @NotNull public @NotNull LodestoneBlockProperties sound(@NotNull @NotNull net.minecraft.world.level.block.SoundType type)
      Overrides:
      sound in class net.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:
      lightLevel in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • strength

      @NotNull public @NotNull LodestoneBlockProperties strength(float destroyTime, float explosionResistance)
      Overrides:
      strength in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • instabreak

      @NotNull public @NotNull LodestoneBlockProperties instabreak()
      Overrides:
      instabreak in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • strength

      @NotNull public @NotNull LodestoneBlockProperties strength(float strength)
      Overrides:
      strength in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • randomTicks

      @NotNull public @NotNull LodestoneBlockProperties randomTicks()
      Overrides:
      randomTicks in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • dynamicShape

      @NotNull public @NotNull LodestoneBlockProperties dynamicShape()
      Overrides:
      dynamicShape in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • noLootTable

      @NotNull public @NotNull LodestoneBlockProperties noLootTable()
      Overrides:
      noLootTable in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • dropsLike

      @NotNull public @NotNull LodestoneBlockProperties dropsLike(@NotNull @NotNull net.minecraft.world.level.block.Block block)
      Overrides:
      dropsLike in class net.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:
      lootFrom in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • air

      @NotNull public @NotNull LodestoneBlockProperties air()
      Overrides:
      air in class net.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:
      isValidSpawn in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • isRedstoneConductor

      @NotNull public @NotNull LodestoneBlockProperties isRedstoneConductor(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate)
      Overrides:
      isRedstoneConductor in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • isSuffocating

      @NotNull public @NotNull LodestoneBlockProperties isSuffocating(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate)
      Overrides:
      isSuffocating in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • isViewBlocking

      @NotNull public @NotNull LodestoneBlockProperties isViewBlocking(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate)
      Overrides:
      isViewBlocking in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • hasPostProcess

      @NotNull public @NotNull LodestoneBlockProperties hasPostProcess(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate)
      Overrides:
      hasPostProcess in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • emissiveRendering

      @NotNull public @NotNull LodestoneBlockProperties emissiveRendering(@NotNull net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate predicate)
      Overrides:
      emissiveRendering in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • requiresCorrectToolForDrops

      @NotNull public @NotNull LodestoneBlockProperties requiresCorrectToolForDrops()
      Overrides:
      requiresCorrectToolForDrops in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • color

      @NotNull public @NotNull LodestoneBlockProperties color(@NotNull @NotNull net.minecraft.world.level.material.MaterialColor materialColor)
      Overrides:
      color in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • destroyTime

      @NotNull public @NotNull LodestoneBlockProperties destroyTime(float destroyTime)
      Overrides:
      destroyTime in class net.minecraft.world.level.block.state.BlockBehaviour.Properties
    • explosionResistance

      @NotNull public @NotNull LodestoneBlockProperties explosionResistance(float explosionResistance)
      Overrides:
      explosionResistance in class net.minecraft.world.level.block.state.BlockBehaviour.Properties