Package net.mtrop.doom.texture
Class DoomTextureList.Texture.Patch
java.lang.Object
net.mtrop.doom.texture.CommonPatch
net.mtrop.doom.texture.DoomTextureList.Texture.Patch
- All Implemented Interfaces:
BinaryObject
- Enclosing class:
- DoomTextureList.Texture
Singular patch entry for a texture.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.mtrop.doom.object.BinaryObject
BinaryObject.InlineScanner<BO extends BinaryObject>, BinaryObject.Reflect, BinaryObject.Scanner<BO extends BinaryObject>, BinaryObject.Shared, BinaryObject.Transformer<BO extends BinaryObject>
-
Field Summary
Fields inherited from class net.mtrop.doom.texture.CommonPatch
originX, originY, patchIndex
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
readBytes
(InputStream in) Reads from anInputStream
and sets this object's fields.void
writeBytes
(OutputStream out) Writes this object to anOutputStream
.Methods inherited from class net.mtrop.doom.texture.CommonPatch
getNameIndex, getOriginX, getOriginY, setNameIndex, setOriginX, setOriginY, toString
-
Field Details
-
LENGTH
public static final int LENGTHThe length of a single patch.- See Also:
-
-
Constructor Details
-
Patch
public Patch()
-
-
Method Details
-
readBytes
Description copied from interface:BinaryObject
Reads from anInputStream
and sets this object's fields. Only reads the amount of bytes that it takes to read a single instance of the object. Note that not every object may have a consistent length!- Parameters:
in
- theInputStream
to read from.- Throws:
IOException
- if a read error occurs.
-
writeBytes
Description copied from interface:BinaryObject
Writes this object to anOutputStream
.- Parameters:
out
- theOutputStream
to write to.- Throws:
IOException
- if a write error occurs.
-