예제 #1
0
 public static BlockAction Piston(CoordInt pos, Face face, bool extend)
 {
     BlockAction ba = new BlockAction();
     ba.Position = pos;
     ba.TypeState = extend ? (byte)0 : (byte)1;
     ba.PitchDirection = (byte)face;
     return ba;
 }
예제 #2
0
 public static BlockAction Chest(CoordInt pos, bool open)
 {
     BlockAction ba = new BlockAction();
     ba.Position = pos;
     ba.TypeState = 1;
     ba.PitchDirection = open ? (byte)1 : (byte)0;
     return ba;
 }
예제 #3
0
        public static BlockAction Piston(CoordInt pos, Face face, bool extend)
        {
            BlockAction ba = new BlockAction();

            ba.Position       = pos;
            ba.TypeState      = extend ? (byte)0 : (byte)1;
            ba.PitchDirection = (byte)face;
            return(ba);
        }
예제 #4
0
        public static BlockAction Chest(CoordInt pos, bool open)
        {
            BlockAction ba = new BlockAction();

            ba.Position       = pos;
            ba.TypeState      = 1;
            ba.PitchDirection = open ? (byte)1 : (byte)0;
            return(ba);
        }
예제 #5
0
 /// <param name='note'>
 /// 0 - 24
 /// </param>
 public static BlockAction NoteBlock(CoordInt pos, Instrument ins, byte note)
 {
     BlockAction ba = new BlockAction();
     ba.Position = pos;
     ba.TypeState = (byte)ins;
     if (note < 0 || note > 24)
         ba.PitchDirection = 0;
     else
         ba.PitchDirection = (byte)note;
     return ba;
 }
예제 #6
0
        /// <param name='note'>
        /// 0 - 24
        /// </param>
        public static BlockAction NoteBlock(CoordInt pos, Instrument ins, byte note)
        {
            BlockAction ba = new BlockAction();

            ba.Position  = pos;
            ba.TypeState = (byte)ins;
            if (note < 0 || note > 24)
            {
                ba.PitchDirection = 0;
            }
            else
            {
                ba.PitchDirection = (byte)note;
            }
            return(ba);
        }