Record Class DebugSubscriptionImpl<T>
java.lang.Object
java.lang.Record
net.minestom.server.network.debug.DebugSubscriptionImpl<T>
- All Implemented Interfaces:
Keyed, DebugSubscription<T>, NetworkBuffer.Type<T>, Holder<DebugSubscription<T>>, RegistryKey<DebugSubscription<T>>, StaticProtocolObject<DebugSubscription<T>>
public record DebugSubscriptionImpl<T>(int id, Key key, NetworkBuffer.Type<T> networkType)
extends Record
implements DebugSubscription<T>, NetworkBuffer.Type<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface DebugSubscription
DebugSubscription.Event<T>, DebugSubscription.Update<T>Nested classes/interfaces inherited from interface Holder
Holder.Direct<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DebugSubscription<DebugHiveInfo> static final DebugSubscription<DebugBeeInfo> static final DebugSubscription<DebugBrainDump> static final DebugSubscription<DebugBreezeInfo> static final DebugSubscription<Unit> static final DebugSubscription<DebugEntityBlockIntersection> static final DebugSubscription<DebugPathInfo> static final DebugSubscription<DebugGameEventListenerInfo> static final DebugSubscription<DebugGameEventInfo> static final DebugSubscription<List<DebugGoalInfo>> static final DebugSubscription<Point> static final DebugSubscription<DebugPoiInfo> static final DebugSubscription<List<Point>> static final DebugSubscription<Integer> static final DebugSubscription<List<DebugStructureInfo>> static final DebugSubscription<Unit> Fields inherited from interface DebugSubscription
NETWORK_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionDebugSubscriptionImpl(int id, Key key, NetworkBuffer.Type<T> networkType) Creates an instance of aDebugSubscriptionImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.key()Returns the value of thekeyrecord component.Returns the value of thenetworkTyperecord component.read(NetworkBuffer buffer) final StringtoString()Returns a string representation of this record class.voidwrite(NetworkBuffer buffer, T value) Methods inherited from interface NetworkBuffer.Type
lengthPrefixed, list, list, mapValue, mapValue, optional, set, set, sizeOf, sizeOf, transform, unionTypeMethods inherited from interface StaticProtocolObject
name, registry
-
Field Details
-
DEDICATED_SERVER_TICK_TIME
-
BEES
-
BRAINS
-
BREEZES
-
GOAL_SELECTORS
-
ENTITY_PATHS
-
ENTITY_BLOCK_INTERSECTIONS
-
BEE_HIVES
-
POIS
-
REDSTONE_WIRE_ORIENTATIONS
-
VILLAGE_SECTIONS
-
RAIDS
-
STRUCTURES
-
GAME_EVENT_LISTENERS
-
NEIGHBOR_UPDATES
-
GAME_EVENTS
-
-
Constructor Details
-
DebugSubscriptionImpl
Creates an instance of aDebugSubscriptionImplrecord class.- Parameters:
id- the value for theidrecord componentkey- the value for thekeyrecord componentnetworkType- the value for thenetworkTyperecord component
-
-
Method Details
-
write
- Specified by:
writein interfaceNetworkBuffer.Type<T>
-
read
- Specified by:
readin interfaceNetworkBuffer.Type<T>
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
public int id()Returns the value of theidrecord component.- Specified by:
idin interfaceDebugSubscription<T>- Specified by:
idin interfaceStaticProtocolObject<T>- Returns:
- the value of the
idrecord component
-
key
Returns the value of thekeyrecord component.- Specified by:
keyin interfaceDebugSubscription<T>- Specified by:
keyin interfaceKeyed- Specified by:
keyin interfaceStaticProtocolObject<T>- Returns:
- the value of the
keyrecord component
-
networkType
Returns the value of thenetworkTyperecord component.- Returns:
- the value of the
networkTyperecord component
-