Package org.cyclops.cyclopscore.proxy
Class ClientProxyComponent
java.lang.Object
org.cyclops.cyclopscore.proxy.CommonProxyComponent
org.cyclops.cyclopscore.proxy.ClientProxyComponent
- All Implemented Interfaces:
IClientProxy
,ICommonProxy
- Direct Known Subclasses:
ClientProxy
public abstract class ClientProxyComponent
extends CommonProxyComponent
implements ICommonProxy, IClientProxy
Base proxy for the client side.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Map<net.minecraft.world.level.block.entity.BlockEntityType,
net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cyclops.cyclopscore.proxy.ICommonProxy
getMod
-
Field Details
-
blockEntityRenderers
protected final Map<net.minecraft.world.level.block.entity.BlockEntityType,net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider> blockEntityRenderers
-
-
Constructor Details
-
ClientProxyComponent
-
-
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 interfaceICommonProxy
- Overrides:
registerRenderer
in classCommonProxyComponent
- 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 interfaceICommonProxy
- Overrides:
registerRenderers
in classCommonProxyComponent
-
registerKeyBindings
public void registerKeyBindings(IKeyRegistry keyRegistry, net.minecraftforge.client.event.RegisterKeyMappingsEvent event) Description copied from interface:ICommonProxy
Register key bindings.- Specified by:
registerKeyBindings
in interfaceICommonProxy
- Overrides:
registerKeyBindings
in classCommonProxyComponent
- Parameters:
keyRegistry
- The key registry to register to.event
- Register mappings event
-
registerPacketHandlers
Description copied from interface:ICommonProxy
Register packet handlers.- Specified by:
registerPacketHandlers
in interfaceICommonProxy
- Overrides:
registerPacketHandlers
in classCommonProxyComponent
- Parameters:
packetHandler
- The packet handler.
-
registerTickHandlers
public void registerTickHandlers()Description copied from interface:ICommonProxy
Register tick handlers.- Specified by:
registerTickHandlers
in interfaceICommonProxy
- Overrides:
registerTickHandlers
in classCommonProxyComponent
-
registerEventHooks
public void registerEventHooks()Description copied from interface:ICommonProxy
Register the event hooks- Specified by:
registerEventHooks
in interfaceICommonProxy
- Overrides:
registerEventHooks
in classCommonProxyComponent
-