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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidmodify(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 aBlockTransformer.
-
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 aBlockTransformer.Modification is achieved by altering the list of
transform data.- Parameters:
key- The ID of the block transformertransforms- The list of transform datasource- The source of the block transformerregistryInfoLookup- Lookup interface used to access registry information
-