Package net.minecraft.network.datasync
Class DataParameter<T>
- java.lang.Object
-
- net.minecraft.network.datasync.DataParameter<T>
-
public class DataParameter<T> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
id
private IDataSerializer<T>
serializer
-
Constructor Summary
Constructors Constructor Description DataParameter(int p_i46841_1_, IDataSerializer<T> p_i46841_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object p_equals_1_)
int
getId()
IDataSerializer<T>
getSerializer()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
id
private final int id
-
serializer
private final IDataSerializer<T> serializer
-
-
Constructor Detail
-
DataParameter
public DataParameter(int p_i46841_1_, IDataSerializer<T> p_i46841_2_)
-
-
Method Detail
-
getId
public int getId()
-
getSerializer
public IDataSerializer<T> getSerializer()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-