Package net.minecraft.nbt
Class IntTag
java.lang.Object
net.minecraft.nbt.NumericTag
net.minecraft.nbt.IntTag
- All Implemented Interfaces:
- Tag
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intprivate static final intFields inherited from interface net.minecraft.nbt.TagARRAY_HEADER, MAX_DEPTH, OBJECT_HEADER, OBJECT_REFERENCE, STRING_SIZE, TAG_ANY_NUMERIC, TAG_BYTE, TAG_BYTE_ARRAY, TAG_COMPOUND, TAG_DOUBLE, TAG_END, TAG_FLOAT, TAG_INT, TAG_INT_ARRAY, TAG_LIST, TAG_LONG, TAG_LONG_ARRAY, TAG_SHORT, TAG_STRING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaccept(StreamTagVisitor p_197481_) voidaccept(TagVisitor p_177984_) copy()booleanbytedoublefloatintgetAsInt()longshortbytegetId()getType()inthashCode()intstatic IntTagvalueOf(int p_128680_) voidwrite(DataOutput p_128682_) Methods inherited from class net.minecraft.nbt.NumericTagtoStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.nbt.TagacceptAsRoot, getAsString
- 
Field Details- 
SELF_SIZE_IN_BYTESprivate static final int SELF_SIZE_IN_BYTES- See Also:
 
- 
TYPE
- 
dataprivate final int data
 
- 
- 
Constructor Details- 
IntTagIntTag(int p_128674_) 
 
- 
- 
Method Details- 
valueOf
- 
write- Throws:
- IOException
 
- 
sizeInBytespublic int sizeInBytes()
- 
getIdpublic byte getId()
- 
getType
- 
copy
- 
equals
- 
hashCodepublic int hashCode()
- 
accept
- 
getAsLongpublic long getAsLong()- Specified by:
- getAsLongin class- NumericTag
 
- 
getAsIntpublic int getAsInt()- Specified by:
- getAsIntin class- NumericTag
 
- 
getAsShortpublic short getAsShort()- Specified by:
- getAsShortin class- NumericTag
 
- 
getAsBytepublic byte getAsByte()- Specified by:
- getAsBytein class- NumericTag
 
- 
getAsDoublepublic double getAsDouble()- Specified by:
- getAsDoublein class- NumericTag
 
- 
getAsFloatpublic float getAsFloat()- Specified by:
- getAsFloatin class- NumericTag
 
- 
getAsNumber- Specified by:
- getAsNumberin class- NumericTag
 
- 
accept
 
-