Class TrackMaterial
java.lang.Object
com.simibubi.create.content.trains.track.TrackMaterial
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<net.minecraft.resources.ResourceLocation, TrackMaterial> static final TrackMaterialfinal net.minecraft.resources.ResourceLocationfinal Stringprotected TrackMaterial.TrackModelHolderfinal net.minecraft.resources.ResourceLocationfinal net.minecraft.world.item.crafting.Ingredientfinal net.minecraft.world.item.crafting.Ingredientfinal com.tterrag.registrate.util.nullness.NonNullSupplier<com.tterrag.registrate.util.nullness.NonNullSupplier<? extends TrackBlock>> final TrackMaterial.TrackType -
Constructor Summary
ConstructorsConstructorDescriptionTrackMaterial(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(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.TrackType.TrackBlockFactory customFactory) -
Method Summary
Modifier and TypeMethodDescriptionstatic List<com.tterrag.registrate.util.nullness.NonNullSupplier<? extends net.minecraft.world.level.block.Block>> static List<com.tterrag.registrate.util.nullness.NonNullSupplier<? extends net.minecraft.world.level.block.Block>> allBlocksFromMod(String modid) static List<TrackMaterial> allFromMod(String modid) net.minecraft.world.item.ItemStackasStack()net.minecraft.world.item.ItemStackasStack(int count) createBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties) static TrackMaterialdeserialize(String serializedName) static TrackMaterialfromItem(net.minecraft.world.item.Item item) getBlock()com.tterrag.registrate.util.nullness.NonNullSupplier<? extends TrackBlock> boolean
-
Field Details
-
ALL
-
ANDESITE
-
id
public final net.minecraft.resources.ResourceLocation id -
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
-
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
-
getBlockSupplier
public com.tterrag.registrate.util.nullness.NonNullSupplier<? extends TrackBlock> getBlockSupplier() -
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
-
allFromMod
-
allBlocksFromMod
-
allBlocks
public static List<com.tterrag.registrate.util.nullness.NonNullSupplier<? extends net.minecraft.world.level.block.Block>> allBlocks() -
resourceName
-
deserialize
-
fromItem
-