Java Code Examples for org.bukkit.entity.EntityType#PAINTING

The following examples show how to use org.bukkit.entity.EntityType#PAINTING . 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: CancellableChunkEvents.java    From ClaimChunk with MIT License 5 votes vote down vote up
@EventHandler
public void onPlayerInteractEntity(PlayerInteractEntityEvent e) {
    if (e == null) {
        return;
    }

    final EntityType ENTITY = e.getRightClicked().getType();
    if (ENTITY == EntityType.ITEM_FRAME || ENTITY == EntityType.PAINTING) {
        ChunkEventHelper.handleInteractionEvent(e.getPlayer(), e.getRightClicked().getLocation().getChunk(), e);
    }
}
 
Example 2
Source File: CraftPainting.java    From Kettle with GNU General Public License v3.0 4 votes vote down vote up
public EntityType getType() {
    return EntityType.PAINTING;
}
 
Example 3
Source File: CraftPainting.java    From Thermos with GNU General Public License v3.0 4 votes vote down vote up
public EntityType getType() {
    return EntityType.PAINTING;
}