6 public static int Index = 191;
56 for (
int i = 0; i < 16; i++) {
57 float factor = i / 15f;
78 if (arrowType.HasValue) {
84 m_arrowBlock.DrawBlock(primitivesRenderer, value2, color, size, ref matrix2, environmentData);
90 public override int SetDamage(
int value,
int damage) {
93 num |= Math.Clamp(damage, 0, 255) << 8;
109 int num = (data >> 4) & 0xF;
117 int num = (int)(arrowType.HasValue ? arrowType.Value + 1 :
ArrowBlock.
ArrowType.WoodenArrow);
118 return (data & -241) | ((num & 0xF) << 4);
121 public static int GetDraw(
int data) => data & 0xF;
123 public static int SetDraw(
int data,
int draw) => (data & -16) | (draw & 0xF);
ModelMesh FindMesh(string name, bool throwIfNotFound=true)
ReadOnlyList< ModelMeshPart > MeshParts
static float Lerp(float x1, float x2, float f)
static int SetArrowType(int data, ArrowType arrowType)
override void Initialize()
static Matrix GetBoneAbsoluteTransform(ModelBone modelBone)
virtual void AppendModelMeshPart(ModelMeshPart meshPart, Matrix matrix, bool makeEmissive, bool flipWindingOrder, bool doubleSided, bool flipNormals, Color color)
static void DrawMeshBlock(PrimitivesRenderer3D primitivesRenderer, BlockMesh blockMesh, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
override int GetDamage(int value)
BlockMesh[] m_standaloneBlockMeshes
override void Initialize()
override void DrawBlock(PrimitivesRenderer3D primitivesRenderer, int value, Color color, float size, ref Matrix matrix, DrawBlockEnvironmentData environmentData)
static int SetDraw(int data, int draw)
static ArrowBlock.? ArrowType GetArrowType(int data)
static int SetArrowType(int data, ArrowBlock.ArrowType? arrowType)
override void GenerateTerrainVertices(BlockGeometryGenerator generator, TerrainGeometry geometry, int value, int x, int y, int z)
static int GetDraw(int data)
override bool IsSwapAnimationNeeded(int oldValue, int newValue)
override int SetDamage(int value, int damage)
static object Get(Type type, string name)
static int ExtractContents(int value)
static int ReplaceData(int value, int data)
static int MakeBlockValue(int contents)
static int ExtractData(int value)
static Matrix CreateRotationX(float radians)
static Matrix CreateTranslation(float x, float y, float z)