public abstract class PostProcessor
extends java.lang.Object
Created by Pepijn on 25-2-2017.
Modifier and Type | Field and Description |
---|---|
static boolean |
enabled |
Constructor and Description |
---|
PostProcessor() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
containsAnyWater(Material material)
Whether the material is any kind of water, including falling or flowing water (with a non zero level).
|
protected void |
dropBlock(MinecraftWorld world,
int x,
int y,
int z) |
protected void |
dropFluid(MinecraftWorld world,
int x,
int y,
int z) |
protected boolean |
isLavaContained(MinecraftWorld world,
int x,
int y,
int z,
Material materialBelow) |
protected boolean |
isWaterContained(MinecraftWorld world,
int x,
int y,
int z,
Material materialBelow) |
abstract void |
postProcess(MinecraftWorld minecraftWorld,
org.pepsoft.util.Box volume,
ExportSettings exportSettings,
org.pepsoft.util.ProgressReceiver progressReceiver)
Post process (part of) a
MinecraftWorld to make sure it conforms
to platform rules. |
void |
postProcess(MinecraftWorld minecraftWorld,
java.awt.Rectangle area,
ExportSettings exportSettings,
org.pepsoft.util.ProgressReceiver progressReceiver)
Post process (part of) a
MinecraftWorld to make sure it conforms
to platform rules. |
public void postProcess(MinecraftWorld minecraftWorld, java.awt.Rectangle area, ExportSettings exportSettings, org.pepsoft.util.ProgressReceiver progressReceiver) throws org.pepsoft.util.ProgressReceiver.OperationCancelled
MinecraftWorld
to make sure it conforms
to platform rules.minecraftWorld
- The MinecraftWorld
to post process.area
- The area of the world to post process from top to bottom.exportSettings
- The export settings to apply, if any. May be null
, in which case the post processor
should use default settings. If the settings are of an unsupported type and/or belong to a
different platform, they must be silently ignored rather than cause an exception.progressReceiver
- The optional progress receiver to which to report
progress. May be null
.ProgressReceiver.OperationCancelled
- If the progress receiver
threw an OperationCancelled
exception.public abstract void postProcess(MinecraftWorld minecraftWorld, org.pepsoft.util.Box volume, ExportSettings exportSettings, org.pepsoft.util.ProgressReceiver progressReceiver) throws org.pepsoft.util.ProgressReceiver.OperationCancelled
MinecraftWorld
to make sure it conforms
to platform rules.minecraftWorld
- The MinecraftWorld
to post process.volume
- The three dimensional area of the world to post process.exportSettings
- The export settings to apply, if any. May be null
, in which case the post processor
should use default settings. If the settings are of an unsupported type and/or belong to a
* different platform, they must be silently ignored rather than cause an exception.progressReceiver
- The optional progress receiver to which to report
progress. May be null
.ProgressReceiver.OperationCancelled
- If the progress receiver
threw an OperationCancelled
exception.protected final void dropBlock(MinecraftWorld world, int x, int y, int z)
protected final void dropFluid(MinecraftWorld world, int x, int y, int z)
protected final boolean isWaterContained(MinecraftWorld world, int x, int y, int z, Material materialBelow)
protected final boolean containsAnyWater(Material material)
protected final boolean isLavaContained(MinecraftWorld world, int x, int y, int z, Material materialBelow)