code: public int[] getVertexData(VertexFormat vertexFormat, Vec3d offset)
  	{
  		float x = (float) getX();
  		float y = (float) getY();
  		float z = (float) getZ();
  
  		if (offset != null)
  		{
  			x += offset.x;
  			y += offset.y;
  			z += offset.z;
  		}
  
  		int[] data = new int[vertexFormat.getIntegerSize()];
  		int index = 0;
  		//private
  		//if(vertexFormat.hasPosition())
  		{
  			data[index++] = Float.floatToRawIntBits(x);
  			data[index++] = Float.floatToRawIntBits(y);
  			data[index++] = Float.floatToRawIntBits(z);
  		}
  		if (vertexFormat.hasColor())
  			data[index++] = getRGBA();
  		if (vertexFormat.hasUvOffset(0)) //normal UVs
  		{
  			data[index++] = Float.floatToRawIntBits((float) getU());
  			data[index++] = Float.floatToRawIntBits((float) getV());
  		}
  		if (vertexFormat.hasUvOffset(1)) //brightness UVs
  			data[index++] = getBrightness();
  		if (vertexFormat.hasNormal())
  			data[index++] = getNormal();
  
  		return data;
  	}
docs: Gets the vertex data for this {@link Vertex}.
  
  @param vertexFormat the vertex format
  @param offset the offset
  @return the vertex data