Class RegisterBibliocraftWoodTypesEvent

java.lang.Object
net.neoforged.bus.api.Event
com.github.minecraftschurlimods.bibliocraft.api.woodtype.RegisterBibliocraftWoodTypesEvent
All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent

public class RegisterBibliocraftWoodTypesEvent extends net.neoforged.bus.api.Event implements net.neoforged.fml.event.IModBusEvent
Register your own BibliocraftWoodTypes here.

This event is not cancelable. This event is fired on the mod event bus.

  • Constructor Details

    • RegisterBibliocraftWoodTypesEvent

      @Internal public RegisterBibliocraftWoodTypesEvent(SequencedMap<net.minecraft.resources.ResourceLocation,BibliocraftWoodType> values)
  • Method Details

    • register

      public void register(net.minecraft.resources.ResourceLocation id, net.minecraft.world.level.block.state.properties.WoodType woodType, Supplier<net.minecraft.world.level.block.state.BlockBehaviour.Properties> properties, net.minecraft.resources.ResourceLocation texture, Supplier<net.minecraft.data.BlockFamily> family)
      Registers a new BibliocraftWoodType.
      Parameters:
      id - The id of the wood type. Should be the id of the mod the wood type comes from, and the name of the wood type.
      woodType - The vanilla WoodType associated with this wood type.
      properties - A supplier for the BlockBehaviour.Properties associated with this wood type. Typically, this is a copy of the wood type's planks' properties.
      texture - The location of the wood type's planks texture, for use in datagen.
      family - A supplier for the BlockFamily for the associated wood type, for use in datagen.