private Model getModel(int modelType, int modelId) {
		Model model = (Model) modelCache.get((modelType << 16) + modelId);
		if (model != null)
			return model;
		if (modelType == 1)
			model = Model.getModel(modelId);
		if (modelType == 2)
			model = EntityDefinition.getDefinition(modelId).getHeadModel();
		if (modelType == 3)
			model = Client.localPlayer.getHeadModel();
		if (modelType == 4)
			model = ItemDefinition.getDefinition(modelId).getInventoryModel(50);
		if (modelType == 5)
			model = null;
		if (model != null)
			modelCache.put(model, (modelType << 16) + modelId);
		return model;
	}