MCPcopy Create free account
hub / github.com/Teneted/Tenet / isInteractable

Method isInteractable

src/main/java/org/bukkit/Material.java:7052–7271  ·  view source on GitHub ↗

Checks if this Material can be interacted with. Interactable materials include those with functionality when they are interacted with by a player such as chests, furnaces, etc. Some blocks such as piston heads and stairs are considered interactable though may not perform any additional functionali

()

Source from the content-addressed store, hash-verified

7050 * @return true if this material can be interacted with.
7051 */
7052 public boolean isInteractable() {
7053 switch (this) {
7054 // <editor-fold defaultstate="collapsed" desc="isInteractable">
7055 case ACACIA_BUTTON:
7056 case ACACIA_DOOR:
7057 case ACACIA_FENCE:
7058 case ACACIA_FENCE_GATE:
7059 case ACACIA_SIGN:
7060 case ACACIA_STAIRS:
7061 case ACACIA_TRAPDOOR:
7062 case ACACIA_WALL_SIGN:
7063 case ANDESITE_STAIRS:
7064 case ANVIL:
7065 case BARREL:
7066 case BEACON:
7067 case BEEHIVE:
7068 case BEE_NEST:
7069 case BELL:
7070 case BIRCH_BUTTON:
7071 case BIRCH_DOOR:
7072 case BIRCH_FENCE:
7073 case BIRCH_FENCE_GATE:
7074 case BIRCH_SIGN:
7075 case BIRCH_STAIRS:
7076 case BIRCH_TRAPDOOR:
7077 case BIRCH_WALL_SIGN:
7078 case BLACKSTONE_STAIRS:
7079 case BLACK_BED:
7080 case BLACK_SHULKER_BOX:
7081 case BLAST_FURNACE:
7082 case BLUE_BED:
7083 case BLUE_SHULKER_BOX:
7084 case BREWING_STAND:
7085 case BRICK_STAIRS:
7086 case BROWN_BED:
7087 case BROWN_SHULKER_BOX:
7088 case CAKE:
7089 case CAMPFIRE:
7090 case CARTOGRAPHY_TABLE:
7091 case CAULDRON:
7092 case CHAIN_COMMAND_BLOCK:
7093 case CHEST:
7094 case CHIPPED_ANVIL:
7095 case COBBLESTONE_STAIRS:
7096 case COMMAND_BLOCK:
7097 case COMPARATOR:
7098 case COMPOSTER:
7099 case CRAFTING_TABLE:
7100 case CRIMSON_BUTTON:
7101 case CRIMSON_DOOR:
7102 case CRIMSON_FENCE:
7103 case CRIMSON_FENCE_GATE:
7104 case CRIMSON_SIGN:
7105 case CRIMSON_STAIRS:
7106 case CRIMSON_TRAPDOOR:
7107 case CRIMSON_WALL_SIGN:
7108 case CYAN_BED:
7109 case CYAN_SHULKER_BOX:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected