diff options
author | FearThe1337 <admin@fearthe1337.com> | 2014-12-10 14:37:53 +0100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2014-12-12 10:52:14 +1100 |
commit | ae75cc39bcc146ce492982ce701efc87bb3bb643 (patch) | |
tree | f53ece974988ca78fdb3700febf6e5401f55443d /src/main/java | |
parent | 7dfe6ea7eab3ef8a87f41e99d0ffcae69b814b87 (diff) | |
download | bukkit-ae75cc39bcc146ce492982ce701efc87bb3bb643.tar bukkit-ae75cc39bcc146ce492982ce701efc87bb3bb643.tar.gz bukkit-ae75cc39bcc146ce492982ce701efc87bb3bb643.tar.lz bukkit-ae75cc39bcc146ce492982ce701efc87bb3bb643.tar.xz bukkit-ae75cc39bcc146ce492982ce701efc87bb3bb643.zip |
Implement displayblocks for minecarts (SPIGOT-14).
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/entity/Minecart.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Minecart.java b/src/main/java/org/bukkit/entity/Minecart.java index 0b3e7745..89fd6db0 100644 --- a/src/main/java/org/bukkit/entity/Minecart.java +++ b/src/main/java/org/bukkit/entity/Minecart.java @@ -1,5 +1,7 @@ package org.bukkit.entity; +import org.bukkit.Material; +import org.bukkit.material.MaterialData; import org.bukkit.util.Vector; /** @@ -109,4 +111,32 @@ public interface Minecart extends Vehicle { * @param derailed visible speed */ public void setDerailedVelocityMod(Vector derailed); + + /** + * Sets the display block for this minecart. + * Passing a null value will set the minecart to have no display block. + * + * @param material the material to set as display block. + */ + public void setDisplayBlock(MaterialData material); + + /** + * Gets the display block for this minecart. + * This function will return the type AIR if none is set. + * + * @return the block displayed by this minecart. + */ + public MaterialData getDisplayBlock(); + + /** + * Sets the offset of the display block. + * @return the current block offset for this minecart. + */ + public void setDisplayBlockOffset(int offset); + + /** + * Gets the offset of the display block. + * @return the current block offset for this minecart. + */ + public int getDisplayBlockOffset(); } |