Class CommonProxyComponent

java.lang.Object
org.cyclops.cyclopscore.proxy.CommonProxyComponent
All Implemented Interfaces:
ICommonProxy
Direct Known Subclasses:
ClientProxyComponent, CommonProxy

public abstract class CommonProxyComponent extends Object implements ICommonProxy
Base proxy for server and client side.
  • Constructor Details

    • CommonProxyComponent

      public CommonProxyComponent()
  • Method Details

    • registerRenderer

      public <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)
      Description copied from interface: ICommonProxy
      Register a block entity renderer.
      Specified by:
      registerRenderer in interface ICommonProxy
      Type Parameters:
      T - The block entity type.
      Parameters:
      blockEntityType - The block entity type.
      rendererFactory - The block entity render factory.
    • registerRenderers

      public void registerRenderers()
      Description copied from interface: ICommonProxy
      Register renderers.
      Specified by:
      registerRenderers in interface ICommonProxy
    • registerKeyBindings

      public void registerKeyBindings(IKeyRegistry keyRegistry, net.minecraftforge.client.event.RegisterKeyMappingsEvent event)
      Description copied from interface: ICommonProxy
      Register key bindings.
      Specified by:
      registerKeyBindings in interface ICommonProxy
      Parameters:
      keyRegistry - The key registry to register to.
      event - Register mappings event
    • registerPacketHandlers

      public void registerPacketHandlers(PacketHandler packetHandler)
      Description copied from interface: ICommonProxy
      Register packet handlers.
      Specified by:
      registerPacketHandlers in interface ICommonProxy
      Parameters:
      packetHandler - The packet handler.
    • registerTickHandlers

      public void registerTickHandlers()
      Description copied from interface: ICommonProxy
      Register tick handlers.
      Specified by:
      registerTickHandlers in interface ICommonProxy
    • registerEventHooks

      public void registerEventHooks()
      Description copied from interface: ICommonProxy
      Register the event hooks
      Specified by:
      registerEventHooks in interface ICommonProxy