Class TrackMaterial

java.lang.Object
com.simibubi.create.content.trains.track.TrackMaterial

public class TrackMaterial extends Object
  • Field Details

    • ALL

      public static final Map<net.minecraft.resources.ResourceLocation,TrackMaterial> ALL
    • ANDESITE

      public static final TrackMaterial ANDESITE
    • id

      public final net.minecraft.resources.ResourceLocation id
    • langName

      public final String langName
    • trackBlock

      public final com.tterrag.registrate.util.nullness.NonNullSupplier<com.tterrag.registrate.util.nullness.NonNullSupplier<? extends TrackBlock>> trackBlock
    • sleeperIngredient

      public final net.minecraft.world.item.crafting.Ingredient sleeperIngredient
    • railsIngredient

      public final net.minecraft.world.item.crafting.Ingredient railsIngredient
    • particle

      public final net.minecraft.resources.ResourceLocation particle
    • trackType

      public final TrackMaterial.TrackType trackType
    • modelHolder

      protected TrackMaterial.TrackModelHolder modelHolder
  • Constructor Details

    • TrackMaterial

      public TrackMaterial(net.minecraft.resources.ResourceLocation id, String langName, com.tterrag.registrate.util.nullness.NonNullSupplier<com.tterrag.registrate.util.nullness.NonNullSupplier<? extends TrackBlock>> trackBlock, net.minecraft.resources.ResourceLocation particle, net.minecraft.world.item.crafting.Ingredient sleeperIngredient, net.minecraft.world.item.crafting.Ingredient railsIngredient, TrackMaterial.TrackType trackType, Supplier<Supplier<TrackMaterial.TrackModelHolder>> modelHolder)
    • TrackMaterial

      public TrackMaterial(net.minecraft.resources.ResourceLocation id, String langName, com.tterrag.registrate.util.nullness.NonNullSupplier<com.tterrag.registrate.util.nullness.NonNullSupplier<? extends TrackBlock>> trackBlock, net.minecraft.resources.ResourceLocation particle, net.minecraft.world.item.crafting.Ingredient sleeperIngredient, net.minecraft.world.item.crafting.Ingredient railsIngredient, TrackMaterial.TrackType trackType, Supplier<Supplier<TrackMaterial.TrackModelHolder>> modelHolder, @Nullable TrackMaterial.TrackType.TrackBlockFactory customFactory)
  • Method Details

    • getModelHolder

      public TrackMaterial.TrackModelHolder getModelHolder()
    • getBlockSupplier

      public com.tterrag.registrate.util.nullness.NonNullSupplier<? extends TrackBlock> getBlockSupplier()
    • getBlock

      public TrackBlock getBlock()
    • asStack

      public net.minecraft.world.item.ItemStack asStack()
    • asStack

      public net.minecraft.world.item.ItemStack asStack(int count)
    • createBlock

      public TrackBlock createBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
    • isFromMod

      public boolean isFromMod(String modId)
    • allFromMod

      public static List<TrackMaterial> allFromMod(String modid)
    • allBlocksFromMod

      public static List<com.tterrag.registrate.util.nullness.NonNullSupplier<? extends net.minecraft.world.level.block.Block>> allBlocksFromMod(String modid)
    • allBlocks

      public static List<com.tterrag.registrate.util.nullness.NonNullSupplier<? extends net.minecraft.world.level.block.Block>> allBlocks()
    • resourceName

      public String resourceName()
    • deserialize

      public static TrackMaterial deserialize(String serializedName)
    • fromItem

      public static TrackMaterial fromItem(net.minecraft.world.item.Item item)