#512: Expand Strider and Steerable entity API

By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
Bukkit/Spigot
2020-06-30 09:53:40 +10:00
parent e34cd0f4b9
commit c689413d27
4 changed files with 138 additions and 17 deletions

View File

@@ -3,4 +3,23 @@ package org.bukkit.entity;
/**
* Represents a Strider.
*/
public interface Strider extends Animals, Vehicle { }
public interface Strider extends Steerable, Vehicle {
/**
* Check whether or not this strider is out of warm blocks and shivering.
*
* @return true if shivering, false otherwise
*/
public boolean isShivering();
/**
* Set whether or not this strider is shivering.
*
* Note that the shivering state is updated frequently on the server,
* therefore this method may not affect the entity for long enough to have a
* noticeable difference.
*
* @param shivering its new shivering state
*/
public void setShivering(boolean shivering);
}