summaryrefslogtreecommitdiff
path: root/src/main/java/net/cshift/api/transit/network/packet/StaticPacket.java
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-11-18 14:30:50 -0500
committerKyle Gunger <kgunger12@gmail.com>2023-11-18 14:30:50 -0500
commit0d147b3a184fc311bd3dae6bf1c974722753b3bf (patch)
tree33d3ef5f8b37831f4704613e98f76a5f11f1f3d4 /src/main/java/net/cshift/api/transit/network/packet/StaticPacket.java
parent5c5e1b3dd0985986a941a65726f8f2d7bff7a188 (diff)
Change namespace againHEADmain
Diffstat (limited to 'src/main/java/net/cshift/api/transit/network/packet/StaticPacket.java')
-rw-r--r--src/main/java/net/cshift/api/transit/network/packet/StaticPacket.java36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/main/java/net/cshift/api/transit/network/packet/StaticPacket.java b/src/main/java/net/cshift/api/transit/network/packet/StaticPacket.java
deleted file mode 100644
index 5ffed26..0000000
--- a/src/main/java/net/cshift/api/transit/network/packet/StaticPacket.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package net.cshift.api.transit.network.packet;
-
-import net.cshift.api.transit.type.*;
-
-/** Simple packet which stores an unchanging value.
- * @author Kyle Gunger
- *
- * @param <D> The data type (Object) that the packet transfers.
- */
-public class StaticPacket<D> implements IStaticPacket<D>
-{
- private Object data;
- private Type<D> type;
-
- /** Constructor. Stores the given data and uses the given type.
- *
- * @param dat The packet's data
- * @param t The packet's type
- */
- public StaticPacket(Object dat, Type<D> t)
- {
- data = dat;
- type = t;
- }
-
- @Override
- public Object getData()
- {
- return data;
- }
-
- @Override
- public Type<D> getType() {
- return type;
- }
-}