Skip to content

Commit

Permalink
Remove overridable name property
Browse files Browse the repository at this point in the history
  • Loading branch information
Tides committed Jan 20, 2024
1 parent 5261ef0 commit 872cc78
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 38 deletions.
2 changes: 0 additions & 2 deletions Obsidian.API/Events/BaseMinecraftEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
/// </summary>
public abstract class BaseMinecraftEventArgs : AsyncEventArgs
{
public virtual string Name => string.Empty;

/// <summary>
/// Server this event took place in.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/BlockBreakEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class BlockBreakEventArgs : BlockEventArgs, ICancellable
{
public override string Name => "BlockBreak";

/// <summary>
/// Player that has broken the block.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/BlockEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public abstract class BlockEventArgs : BaseMinecraftEventArgs
{
public override string Name => "BlockEvent";

/// <summary>
/// The impacted block.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/ContainerClickEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ namespace Obsidian.API.Events;

public sealed class ContainerClickEventArgs : ContainerEventArgs, ICancellable
{
public override string Name => "ContainerClick";

/// <summary>
/// Gets the current item that was clicked
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/ContainerClosedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
namespace Obsidian.API.Events;
public sealed class ContainerClosedEventArgs : ContainerEventArgs, ICancellable
{
public override string Name => "ContainerClosed";

public bool IsCancelled { get; private set; }

internal ContainerClosedEventArgs(IPlayer player, IServer server) : base(player, server)
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/ContainerEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class ContainerEventArgs : PlayerEventArgs
{
public override string Name => "ContainerEvent";

public required BaseContainer Container { get; init; }

protected ContainerEventArgs(IPlayer player, IServer server) : base(player, server)
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/EntityEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class EntityEventArgs : BaseMinecraftEventArgs, ICancellable
{
public override string Name => "EntityEvent";

/// <summary>
/// The entity involved in this event.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/EntityInteractEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class EntityInteractEventArgs : EntityEventArgs
{
public override string Name => "EntityInteract";

/// <summary>
/// The player who interacted with the entity.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/IncomingChatMessageEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class IncomingChatMessageEventArgs : PlayerEventArgs, ICancellable
{
public override string Name => "IncomingChatMessage";

/// <summary>
/// The message that was sent.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/PacketReceivedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public sealed class PacketReceivedEventArgs : PlayerEventArgs, ICancellable
{
public override string Name => "PacketReceived";

/// <summary>
/// Id of the received packet.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/PermissionGrantedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class PermissionGrantedEventArgs : PlayerEventArgs
{
public override string Name => "PermissionGranted";

public string Permission { get; }

public PermissionGrantedEventArgs(IPlayer player, IServer server, string permission) : base(player, server)
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/PermissionRevokedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class PermissionRevokedEventArgs : PlayerEventArgs
{
public override string Name => "PermissionRevoked";

public string Permission { get; }

public PermissionRevokedEventArgs(IPlayer player, IServer server, string permission) : base(player, server)
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/PlayerAttackEntityEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
//TODO check if player crits and calculate damage
public class PlayerAttackEntityEventArgs : EntityEventArgs
{
public override string Name => "PlayerAttackEntity";

/// <summary>
/// The player who interacted with the entity.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/PlayerEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class PlayerEventArgs : BaseMinecraftEventArgs
{
public override string Name => "PlayerEvent";

/// <summary>
/// The player involved in this event.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/PlayerInteractEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
/// </summary>
public sealed class PlayerInteractEventArgs : PlayerEventArgs, ICancellable
{
public override string Name => "PlayerInteract";

/// <summary>
/// The item that was being held when interacting.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/PlayerJoinEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class PlayerJoinEventArgs : PlayerEventArgs
{
public override string Name => "PlayerJoin";

/// <summary>
/// The date the player joined.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/PlayerLeaveEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class PlayerLeaveEventArgs : PlayerEventArgs
{
public override string Name => "PlayerLeave";

/// <summary>
/// The date the player left.
/// </summary>
Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/PlayerTeleportEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class PlayerTeleportEventArgs : PlayerEventArgs
{
public override string Name => "PlayerTeleport";

public VectorF OldPosition { get; }
public VectorF NewPosition { get; }

Expand Down
2 changes: 0 additions & 2 deletions Obsidian.API/Events/ServerStatusRequestEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

public class ServerStatusRequestEventArgs : BaseMinecraftEventArgs
{
public override string Name => "ServerStatusRequest";

public IServerStatus Status { get; }

internal ServerStatusRequestEventArgs(IServer server, IServerStatus status) : base(server)
Expand Down

0 comments on commit 872cc78

Please sign in to comment.