示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="entity">The entity that has been damaged</param>
 /// <param name="source">The source of the of the damage</param>
 /// <param name="cause">The cause of the damage</param>
 /// <param name="previousHealth">The entity's previous health value</param>
 /// <param name="newHealth">The entity's new health value</param>
 public EntityDamageEvent(MiNET.Entities.Entity entity, MiNET.Entities.Entity source, DamageCause cause, int previousHealth, int newHealth) : base(entity)
 {
     Cause          = cause;
     PreviousHealth = previousHealth;
     NewHealth      = newHealth;
     Attacker       = source;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="entity">The entity the player has interacted with</param>
 /// <param name="source">The player that initiated the interaction</param>
 /// <param name="action">The action that got initiated</param>
 public EntityInteractEvent(MiNET.Entities.Entity entity, OpenPlayer source, McpeInventoryTransaction.ItemUseOnEntityAction action) : base(entity)
 {
     SourcePlayer = source;
     Action       = action;
 }
示例#3
0
 public EntityEvent(MiNET.Entities.Entity entity)
 {
     Entity = entity;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="player">The player that started breaking the block.</param>
 /// <param name="block">The block that is to be destroyed</param>
 public BlockStartBreakEvent(MiNET.Entities.Entity player, MiNET.Blocks.Block block) : base(player, block, null)
 {
 }
示例#5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="player">The entity that triggered the event</param>
 /// <param name="block">The block that was broken</param>
 /// <param name="drops">The items that were gonna be dropped if the block broke</param>
 public BlockBreakEvent(MiNET.Entities.Entity player, MiNET.Blocks.Block block, List <Item> drops) : base(block, block.GetExperiencePoints())
 {
     Source = player;
     Drops  = drops;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="world">The level the entity was added to</param>
 /// <param name="entity">The entity that has been added</param>
 public LevelEntityAddedEvent(OpenLevel world, MiNET.Entities.Entity entity) : base(world)
 {
     Entity = entity;
 }
示例#7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="entity">The entity who's health was regained</param>
 /// <param name="previousHealth">The entity's previous health</param>
 /// <param name="newHealth">The entity's new health</param>
 public EntityRegainHealthEvent(MiNET.Entities.Entity entity, int previousHealth, int newHealth) : base(entity)
 {
     PreviousHealth = previousHealth;
     NewHealth      = newHealth;
 }
示例#8
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="entity">The entity that got killed.</param>
 public EntityKilledEvent(MiNET.Entities.Entity entity) : base(entity)
 {
 }
示例#9
0
 public EntityLevelEvent(MiNET.Entities.Entity entity) : base(entity)
 {
 }