Package org.cyclops.cyclopscore.proxy
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 TypeMethodDescriptiongetMod()
void
Register the event hooksvoid
registerKeyBindings
(IKeyRegistry keyRegistry, net.minecraftforge.client.event.RegisterKeyMappingsEvent event) Register key bindings.void
registerPacketHandlers
(PacketHandler packetHandler) Register packet handlers.<T extends net.minecraft.world.level.block.entity.BlockEntity>
voidregisterRenderer
(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
Register packet handlers.- Parameters:
packetHandler
- The packet handler.
-
registerTickHandlers
void registerTickHandlers()Register tick handlers. -
registerEventHooks
void registerEventHooks()Register the event hooks
-