<commit_before>package k2b6s9j.boatcraft.core

import cpw.mods.fml.client.registry.RenderingRegistry
import cpw.mods.fml.common.registry.EntityRegistry
import net.minecraftforge.client.MinecraftForgeClient
import k2b6s9j.boatcraft.api.Boat

object Proxy
{
	class CommonProxy
	{
		def registerRenderers
		{}
		
		def registerEntities
		{
			EntityRegistry.registerModEntity(classOf[Boat.EntityCustomBoat],
					"customBoat", 0, BoatCraft, 66, 10, true)
			EntityRegistry.registerModEntity(classOf[Boat.EntityBoatContainer],
					"containerBoat", 1, BoatCraft, 66, 10, true)
		}
	}

	class ClientProxy extends CommonProxy
	{
		override def registerRenderers
		{
			BoatCraft.log info "Registering Renderes"
			RenderingRegistry registerEntityRenderingHandler(classOf[Boat.EntityCustomBoat],
					new Boat.RenderCustomBoat)
			MinecraftForgeClient registerItemRenderer(BoatCraft.itemBoat, new Boat.RenderCustomBoat)
			RenderingRegistry registerEntityRenderingHandler(classOf[Boat.EntityBoatContainer],
					new Boat.RenderCustomBoat)
		}
	}
}<commit_msg>Proxy documentation.<commit_after>package k2b6s9j.boatcraft.core

import cpw.mods.fml.client.registry.RenderingRegistry
import cpw.mods.fml.common.registry.EntityRegistry
import net.minecraftforge.client.MinecraftForgeClient
import k2b6s9j.boatcraft.api.Boat

/** Contains the Proxy classes needed for the Minecraft Client and Server to function properly. */
object Proxy
{
  /**
    * The base proxy class.
    * Used for the Minecraft Server.
    */
  class CommonProxy
	{
    /**
      * The register renderers method.
      * Not used client-side, but it needs to be here so that the client functions correctly.
      */
    def registerRenderers
		{}

    /**
      * The register entities method.
      * Used to register the entities created by the mod with Minecraft Forge, which configures the entity for both server and client.
      */
    def registerEntities
		{
			EntityRegistry.registerModEntity(classOf[Boat.EntityCustomBoat],
					"customBoat", 0, BoatCraft, 66, 10, true)
			EntityRegistry.registerModEntity(classOf[Boat.EntityBoatContainer],
					"containerBoat", 1, BoatCraft, 66, 10, true)
		}
	}

  /** The client proxy class, extending the base proxy. */
  class ClientProxy extends CommonProxy
	{
    /**
     * The overridden register renderers method, used to register special rendering done by the mod with the client.
     */
    override def registerRenderers
		{
			BoatCraft.log info "Registering Renderes"
			RenderingRegistry registerEntityRenderingHandler(classOf[Boat.EntityCustomBoat],
					new Boat.RenderCustomBoat)
			MinecraftForgeClient registerItemRenderer(BoatCraft.itemBoat, new Boat.RenderCustomBoat)
			RenderingRegistry registerEntityRenderingHandler(classOf[Boat.EntityBoatContainer],
					new Boat.RenderCustomBoat)
		}
	}
}
{'fraction_non_alphanumeric': 0.07714083510261854, 'fraction_numerical': 0.01132342533616419, 'mean_word_length': 4.274253731343284, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6031248', 'n_tokens_mistral': 953, 'n_tokens_neox': 865, 'n_words': 203}