Interface ICommonProxy

All Known Subinterfaces:
IClientProxy
All Known Implementing Classes:
ClientProxy, ClientProxyComponent, CommonProxy, CommonProxyComponent

public interface ICommonProxy
Interface for common proxies.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    Register the event hooks
    void
    registerKeyBindings(IKeyRegistry keyRegistry, net.minecraftforge.client.event.RegisterKeyMappingsEvent event)
    Register key bindings.
    void
    Register packet handlers.
    <T extends net.minecraft.world.level.block.entity.BlockEntity>
    void
    registerRenderer(net.minecraft.world.level.block.entity.BlockEntityType<? extends T> blockEntityType, net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider<T> rendererFactory)
    Register a block entity renderer.
    void
    Register renderers.
    void
    Register tick handlers.
  • Method Details

    • getMod

      ModBase getMod()
      Returns:
      The mod for this proxy.
    • registerRenderer

      <T extends net.minecraft.world.level.block.entity.BlockEntity> void registerRenderer(net.minecraft.world.level.block.entity.BlockEntityType<? extends T> blockEntityType, net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider<T> rendererFactory)
      Register a block entity renderer.
      Type Parameters:
      T - The block entity type.
      Parameters:
      blockEntityType - The block entity type.
      rendererFactory - The block entity render factory.
    • registerRenderers

      void registerRenderers()
      Register renderers.
    • registerKeyBindings

      void registerKeyBindings(IKeyRegistry keyRegistry, net.minecraftforge.client.event.RegisterKeyMappingsEvent event)
      Register key bindings.
      Parameters:
      keyRegistry - The key registry to register to.
      event - Register mappings event
    • registerPacketHandlers

      void registerPacketHandlers(PacketHandler packetHandler)
      Register packet handlers.
      Parameters:
      packetHandler - The packet handler.
    • registerTickHandlers

      void registerTickHandlers()
      Register tick handlers.
    • registerEventHooks

      void registerEventHooks()
      Register the event hooks