21
paper-api/src/main/java/org/bukkit/block/data/Hangable.java
Normal file
21
paper-api/src/main/java/org/bukkit/block/data/Hangable.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package org.bukkit.block.data;
|
||||
|
||||
/**
|
||||
* 'hanging' denotes whether the lantern is hanging from a block.
|
||||
*/
|
||||
public interface Hangable extends BlockData {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'hanging' property.
|
||||
*
|
||||
* @return the 'hanging' value
|
||||
*/
|
||||
boolean isHanging();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'hanging' property.
|
||||
*
|
||||
* @param hanging the new 'hanging' value
|
||||
*/
|
||||
void setHanging(boolean hanging);
|
||||
}
|
||||
@@ -1,23 +1,7 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.Hangable;
|
||||
import org.bukkit.block.data.Waterlogged;
|
||||
|
||||
/**
|
||||
* 'hanging' denotes whether the lantern is hanging from a block.
|
||||
*/
|
||||
public interface Lantern extends Waterlogged {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'hanging' property.
|
||||
*
|
||||
* @return the 'hanging' value
|
||||
*/
|
||||
boolean isHanging();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'hanging' property.
|
||||
*
|
||||
* @param hanging the new 'hanging' value
|
||||
*/
|
||||
void setHanging(boolean hanging);
|
||||
public interface Lantern extends Hangable, Waterlogged {
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.Ageable;
|
||||
import org.bukkit.block.data.Waterlogged;
|
||||
|
||||
public interface MangrovePropagule extends Ageable, Sapling, Waterlogged {
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.BlockData;
|
||||
|
||||
/**
|
||||
* 'bloom' indicates whether the sculk catalyst is actively spreading the sculk
|
||||
* or not.
|
||||
*/
|
||||
public interface SculkCatalyst extends BlockData {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'bloom' property.
|
||||
*
|
||||
* @return the 'bloom' value
|
||||
*/
|
||||
boolean isBloom();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'bloom' property.
|
||||
*
|
||||
* @param bloom the new 'bloom' value
|
||||
*/
|
||||
void setBloom(boolean bloom);
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package org.bukkit.block.data.type;
|
||||
|
||||
import org.bukkit.block.data.Waterlogged;
|
||||
|
||||
/**
|
||||
* 'can_summon' indicates whether the sculk shrieker can summon the warden.
|
||||
* <p>
|
||||
* 'shrieking' indicated whether the sculk shrieker is shrieking or not.
|
||||
*/
|
||||
public interface SculkShrieker extends Waterlogged {
|
||||
|
||||
/**
|
||||
* Gets the value of the 'can_summon' property.
|
||||
*
|
||||
* @return the 'can_summon' value
|
||||
*/
|
||||
boolean isCanSummon();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'can_summon' property.
|
||||
*
|
||||
* @param can_summon the new 'can_summon' value
|
||||
*/
|
||||
void setCanSummon(boolean can_summon);
|
||||
|
||||
/**
|
||||
* Gets the value of the 'shrieking' property.
|
||||
*
|
||||
* @return the 'shrieking' value
|
||||
*/
|
||||
boolean isShrieking();
|
||||
|
||||
/**
|
||||
* Sets the value of the 'shrieking' property.
|
||||
*
|
||||
* @param shrieking the new 'shrieking' value
|
||||
*/
|
||||
void setShrieking(boolean shrieking);
|
||||
}
|
||||
Reference in New Issue
Block a user