Package net.neoforged.neoforge.client.extensions
@ParametersAreNonnullByDefault
package net.neoforged.neoforge.client.extensions
Extension interfaces for
client-only classes.
Extension interfaces allow the convenient addition of methods to the target class, as the target class is patched to implement the interface. Because of this, these interfaces must only be implemented by the target classes, and must not be implemented manually by mods.
These interfaces hold at least one method: the self() method which casts the object into the type of the
targeted class, to allow methods in the extension interface to reference methods from the target class. Additional
methods are usually default with an implementation in the interface itself, but methods may be implemented
in the target class instead if it requires access to (patched-in or original) fields in the instance.
-
ClassDescriptionExtension interface for.
invalid reference
AbstractWidgetExtension interface forAbstractWidget.Extension interface for.invalid reference
BakedModelExtension interface forBakedModel.IBlockEntityRendererExtension<T extends BlockEntity>Extension interface for.invalid reference
DimensionSpecialEffectsExtension interface forDimensionSpecialEffects.Extension interface for.invalid reference
FontExtension interface forFont.Extension interface for.invalid reference
GuiGraphicsExtension interface forGuiGraphics.Extension interface for.invalid reference
KeyMappingExtension interface forKeyMapping.Extension type for theinterface.invalid reference
net.minecraft.world.MenuProviderExtension type for theMenuProviderinterface.Extension interface for.invalid reference
MinecraftExtension interface forMinecraft.Extension interface for.invalid reference
com.mojang.blaze3d.vertex.PoseStackExtension interface forPoseStack.Extension interface for.invalid reference
VertexConsumerExtension interface forVertexConsumer.