コード例 #1
0
 public virtual void OnBreak(Vector3Int blockPos, BlockBreakReason reason)
 {
     if (GameClient.IsGameWorldloaded && GameClient.theWorld != null)
     {
         //Spawn particles
         //TODO: Particles
         ParticleEngine.SpawnParticles(blockPos.ToVector3(), Title, 5f, Particle.Behavior.BlockParticle, 15);
     }
 }
コード例 #2
0
 public void SetBlock(ushort id, byte x, byte y, byte z, BlockBreakReason reason)
 {
     SetBlock(id, x, y, z, (byte)reason);
 }
コード例 #3
0
 public void SetBlockAt(Vector3Int pos, uint id, BlockBreakReason reason)
 {
     SetBlockAt(pos.X, pos.Y, pos.Z, id, (uint)reason);
 }
コード例 #4
0
 public void SetBlockAt(int X, int Y, int Z, uint id, BlockBreakReason reason)
 {
     SetBlockAt(X, Y, Z, id, (uint)reason);
 }