Beispiel #1
0
 public override void BlockPlaced(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user)
 {
     BlockUpdate(descriptor, descriptor, user.Server, world);
 }
Beispiel #2
0
 protected override ItemStack[] GetDrop(BlockDescriptor descriptor, ItemStack item)
 {
     return(new[] { new ItemStack(DirtBlock.BlockId, 1) });
 }
Beispiel #3
0
 protected override ItemStack[] GetDrop(BlockDescriptor descriptor, ItemStack item)
 {
     return(new ItemStack[0]);
 }
Beispiel #4
0
 protected override ItemStack[] GetDrop(BlockDescriptor descriptor, ItemStack item)
 {
     return(new[] { new ItemStack(SugarCanesItem.ItemID) });
 }
Beispiel #5
0
 public override Coordinates3D GetSupportDirection(BlockDescriptor descriptor)
 {
     return(Coordinates3D.Down);
 }
Beispiel #6
0
 public override void BlockPlaced(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user)
 {
     ScheduleUpdate(user.Server, world, descriptor);
 }
Beispiel #7
0
 public virtual void BlockPlaced(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user)
 {
     // This space intentionally left blank
 }
Beispiel #8
0
 public virtual void BlockMined(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user)
 {
     GenerateDropEntity(descriptor, world, user.Server, user.SelectedItem);
     world.SetBlockID(descriptor.Coordinates, 0);
 }
Beispiel #9
0
 public virtual bool BlockRightClicked(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user)
 {
     return(true);
 }
Beispiel #10
0
 public virtual Coordinates3D GetSupportDirection(BlockDescriptor descriptor)
 {
     return(Coordinates3D.Zero);
 }
Beispiel #11
0
 public virtual void TileEntityLoadedForClient(BlockDescriptor descriptor, IWorld world, NbtCompound entity, IRemoteClient client)
 {
     // This space intentionally left blank
 }
Beispiel #12
0
 public override void BlockPlaced(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user)
 {
     user.Server.Scheduler.ScheduleEvent(DateTime.Now.AddSeconds(MathHelper.Random.Next(MinGrowthSeconds, MaxGrowthSeconds)),
                                         (server) => TryGrowth(server, descriptor.Coordinates, world));
 }
Beispiel #13
0
 public override void BlockPlaced(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user)
 {
     world.SetMetadata(descriptor.Coordinates, (byte)MathHelper.DirectionByRotationFlat(user.Entity.Yaw, true));
 }