org.bukkit.block.PistonMoveReaction Java Examples

The following examples show how to use org.bukkit.block.PistonMoveReaction. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CraftEntity.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
@Override
public PistonMoveReaction getPistonMoveReaction() {
    return PistonMoveReaction.getById(getHandle().getPushReaction().ordinal());
}
 
Example #2
Source File: EntityBlock.java    From Modern-LWC with MIT License 4 votes vote down vote up
@Override
public PistonMoveReaction getPistonMoveReaction() {
    // TODO Auto-generated method stub
    return null;
}
 
Example #3
Source File: BlockImpl.java    From Civs with GNU General Public License v3.0 4 votes vote down vote up
@Override
public PistonMoveReaction getPistonMoveReaction() {
    return null;
}
 
Example #4
Source File: DelayedChangeBlock.java    From Skript with GNU General Public License v3.0 4 votes vote down vote up
@Override
public PistonMoveReaction getPistonMoveReaction() {
	return b.getPistonMoveReaction();
}
 
Example #5
Source File: BlockStateBlock.java    From Skript with GNU General Public License v3.0 4 votes vote down vote up
@Override
public PistonMoveReaction getPistonMoveReaction() {
	throw new UnsupportedOperationException();
}
 
Example #6
Source File: CraftBlock.java    From Thermos with GNU General Public License v3.0 4 votes vote down vote up
public PistonMoveReaction getPistonMoveReaction() {
    return PistonMoveReaction.getById(getNMSBlock().getMaterial().getMaterialMobility());
}
 
Example #7
Source File: AsyncBlock.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Override
public PistonMoveReaction getPistonMoveReaction() {
    return null;
}
 
Example #8
Source File: Entity.java    From Kettle with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Returns the reaction of the entity when moved by a piston.
 *
 * @return reaction
 */
PistonMoveReaction getPistonMoveReaction();