======= Interface Injection ======= This is a new technique introduced by Loom 0.11 to add methods into a specific existing class. More specifically, you can create an Interface, and then inject this interface into the class. As result the target class will acquire all the methods of the interface, as if it always had them. Interface injection is a compile time only feature, this means that a Mixin should also be used to implement the interface into the target class. This is particularly useful for libraries, with this you can add new methods to existing classes and use them without the need of casting or reimplementing the interface every time. Let's explain better with an example: The scope of this example is to add the following method into '''' to get the sound of the bucket when emptied. This, normally, is not possible because '''' does not has a similar method. Optional getBucketEmptySound() To add the method into the class, first of all you need to create an interface with it: package net.fabricmc.example; public interface BucketEmptySoundGetter { // The methods in an injected interface MUST be default, // otherwise code referencing them won't compile! default Optional getBucketEmptySound() { return Optional.empty(); } } Now you need to implement this interface into '''' with a mixin implementing the interface: @Mixin(class_3609.class) public class MixinFlowableFluid implements BucketEmptySoundGetter { @Override public Optional getBucketEmptySound() { //This is how to get the default sound, copied from BucketItem class. return Optional.of(((class_3609) (Object) this).method_15791(class_3486.field_15518) ? class_3417.field_15010 : class_3417.field_14834); } } Lastly you need to inject the interface into ''''. The following snippet can be added to your fabric.mod.json file to add one or more interfaces to the '''' class. Note that all class names here must use the "internal names" that use slashes instead of dots (''path/to/my/Class''). { "custom": { "loom:injected_interfaces": { "net/minecraft/class_3609": ["net/fabricmc/example/BucketEmptySoundGetter"] } } } Now you can use the new method: Optional sound = mytestfluid.getBucketEmptySound(); You could also override this method in classes extending to implement custom behaviours.