Interface BlockTransformerEvents.Modify

Enclosing class:
BlockTransformerEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface BlockTransformerEvents.Modify
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    modify(net.minecraft.resources.ResourceKey<net.minecraft.core.component.BlockTransformer> key, List<net.minecraft.core.component.BlockTransformer.BlockTransformData> transforms, ResourceSource source, net.minecraft.resources.RegistryOps.RegistryInfoLookup registryInfoLookup)
    Allows for modification of a BlockTransformer.
  • Method Details

    • modify

      void modify(net.minecraft.resources.ResourceKey<net.minecraft.core.component.BlockTransformer> key, List<net.minecraft.core.component.BlockTransformer.BlockTransformData> transforms, ResourceSource source, net.minecraft.resources.RegistryOps.RegistryInfoLookup registryInfoLookup)
      Allows for modification of a BlockTransformer.

      Modification is achieved by altering the list of transform data.

      Parameters:
      key - The ID of the block transformer
      transforms - The list of transform data
      source - The source of the block transformer
      registryInfoLookup - Lookup interface used to access registry information