Package codechicken.lib.data
Class MCDataOutputStream
java.lang.Object
codechicken.lib.data.MCDataOutputStream
- All Implemented Interfaces:
MCDataOutput
- Direct Known Subclasses:
MCByteStream
An
MCDataOutput implementation writing all
its data to either a OutputStream or
DataOutput stream.
Created by covers1624 on 4/15/20.
-
Nested Class Summary
Nested classes/interfaces inherited from interface codechicken.lib.data.MCDataOutput
MCDataOutput.OutputStreamWrapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwriteBoolean(boolean b) Writes a boolean to the stream.writeByte(int b) Writes a byte to the stream.writeChar(int c) Writes a char to the stream.writeDouble(double d) Writes a double to the stream.writeFloat(float f) Writes a float to the stream.writeInt(int i) Writes a int to the stream.writeLong(long l) Writes a long to the stream.writeShort(int s) Writes a short to the stream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface codechicken.lib.data.MCDataOutput
append, append, toDataOutput, toOutputStream, writeBooleans, writeBooleans, writeByteBuf, writeByteBuffer, writeBytes, writeBytes, writeCharBuffer, writeChars, writeChars, writeCompoundNBT, writeCuboid, writeDirection, writeDoubleBuffer, writeDoubles, writeDoubles, writeEnum, writeFloatBuffer, writeFloats, writeFloats, writeFluidStack, writeIntBuffer, writeInts, writeInts, writeItemStack, writeItemStack, writeLongBuffer, writeLongs, writeLongs, writePos, writeRegistryId, writeRegistryId, writeRegistryIdDirect, writeRegistryIdDirect, writeResourceLocation, writeShortBuffer, writeShorts, writeShorts, writeSignedVarInt, writeSignedVarInts, writeSignedVarInts, writeSignedVarLong, writeSignedVarLongs, writeSignedVarLongs, writeString, writeString, writeTextComponent, writeUUID, writeVarInt, writeVarInts, writeVarInts, writeVarLong, writeVarLongs, writeVarLongs, writeVec3d, writeVec3f, writeVec3i, writeVector
-
Constructor Details
-
MCDataOutputStream
-
MCDataOutputStream
-
-
Method Details
-
writeByte
Description copied from interface:MCDataOutputWrites a byte to the stream.- Specified by:
writeBytein interfaceMCDataOutput- Parameters:
b- The byte.- Returns:
- The same stream.
-
writeChar
Description copied from interface:MCDataOutputWrites a char to the stream.- Specified by:
writeCharin interfaceMCDataOutput- Parameters:
c- The char.- Returns:
- The same stream.
-
writeShort
Description copied from interface:MCDataOutputWrites a short to the stream.- Specified by:
writeShortin interfaceMCDataOutput- Parameters:
s- The short.- Returns:
- The same stream.
-
writeInt
Description copied from interface:MCDataOutputWrites a int to the stream.- Specified by:
writeIntin interfaceMCDataOutput- Parameters:
i- The int.- Returns:
- The same stream.
-
writeLong
Description copied from interface:MCDataOutputWrites a long to the stream.- Specified by:
writeLongin interfaceMCDataOutput- Parameters:
l- The long.- Returns:
- The same stream.
-
writeFloat
Description copied from interface:MCDataOutputWrites a float to the stream.- Specified by:
writeFloatin interfaceMCDataOutput- Parameters:
f- The float.- Returns:
- The same stream.
-
writeDouble
Description copied from interface:MCDataOutputWrites a double to the stream.- Specified by:
writeDoublein interfaceMCDataOutput- Parameters:
d- The double.- Returns:
- The same stream.
-
writeBoolean
Description copied from interface:MCDataOutputWrites a boolean to the stream.- Specified by:
writeBooleanin interfaceMCDataOutput- Parameters:
b- The boolean.- Returns:
- The same stream.
-