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) Reads a value frombufferat its read index.final StringtoString()Returns a string representation of this record class.voidwrite(NetworkBuffer buffer, T value) Writes a value tobufferat its write index.Methods inherited from interface NetworkBuffer.Type
lengthPrefixed, list, list, mapValue, mapValue, maxLength, optional, set, set, sizeOf, sizeOf, transform, unionTypeMethods inherited from interface StaticProtocolObject
name, registryKey
-
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
Description copied from interface:NetworkBuffer.TypeWrites a value tobufferat its write index.- Specified by:
writein interfaceNetworkBuffer.Type<T>- Parameters:
buffer- the buffer to write tovalue- the value
-
read
Description copied from interface:NetworkBuffer.TypeReads a value frombufferat its read index.- Specified by:
readin interfaceNetworkBuffer.Type<T>- Parameters:
buffer- the buffer to read from- Returns:
- the value
-
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 interfaceStaticProtocolObject<T>- Returns:
- the value of the
idrecord component
-
key
-
networkType
Returns the value of thenetworkTyperecord component.- Returns:
- the value of the
networkTyperecord component
-