mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Implement displayblocks for minecarts (SPIGOT-14).
This commit is contained in:
parent
7dfe6ea7ea
commit
ae75cc39bc
1 changed files with 30 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
package org.bukkit.entity;
|
package org.bukkit.entity;
|
||||||
|
|
||||||
|
import org.bukkit.Material;
|
||||||
|
import org.bukkit.material.MaterialData;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -109,4 +111,32 @@ public interface Minecart extends Vehicle {
|
||||||
* @param derailed visible speed
|
* @param derailed visible speed
|
||||||
*/
|
*/
|
||||||
public void setDerailedVelocityMod(Vector derailed);
|
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue