Class StrifeTextureList.Texture.Patch
java.lang.Object
net.mtrop.doom.texture.CommonPatch
net.mtrop.doom.texture.StrifeTextureList.Texture.Patch
- All Implemented Interfaces:
BinaryObject
- Enclosing class:
StrifeTextureList.Texture
Singular patch entry for a texture.
- Author:
- Matthew Tropiano
-
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
FieldsFields inherited from class net.mtrop.doom.texture.CommonPatch
originX, originY, patchIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidreadBytes(InputStream in) Reads from anInputStreamand sets this object's fields.voidwriteBytes(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:BinaryObjectReads from anInputStreamand 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- theInputStreamto read from.- Throws:
IOException- if a read error occurs.
-
writeBytes
Description copied from interface:BinaryObjectWrites this object to anOutputStream.- Parameters:
out- theOutputStreamto write to.- Throws:
IOException- if a write error occurs.
-