Modifier and Type | Method and Description |
---|---|
static FunctionEntry |
create(Block block,
java.lang.String... arguments)
Creates a new FunctionEntry.
|
static FunctionEntry |
create(java.io.InputStream in)
Creates a new FunctionEntry from an input stream.
|
static FunctionEntry |
create(java.lang.String... arguments)
Creates a new FunctionEntry, null block (MUST BE SET LATER).
|
java.lang.String[] |
getArguments()
Gets the argument names for this function.
|
Block |
getBlock() |
void |
readBytes(java.io.InputStream in)
Imports this object from bytes.
|
void |
setBlock(Block block)
Sets the function block on this entry.
|
void |
writeBytes(java.io.OutputStream out)
Exports this object to bytes.
|
public static FunctionEntry create(Block block, java.lang.String... arguments)
block
- the function block.arguments
- the function argument names.public static FunctionEntry create(java.lang.String... arguments)
arguments
- the function argument names.public static FunctionEntry create(java.io.InputStream in) throws java.io.IOException
in
- the input stream to read from.java.io.IOException
- if a read error occurs.public java.lang.String[] getArguments()
public void setBlock(Block block)
block
- the block to set.public Block getBlock()
public void writeBytes(java.io.OutputStream out) throws java.io.IOException
Saveable
writeBytes
in interface Saveable
out
- the output stream to write to.java.io.IOException
- if a write problem occurs.public void readBytes(java.io.InputStream in) throws java.io.IOException
Saveable