001/* 002 * Trident - A Multithreaded Server Alternative 003 * Copyright 2014 The TridentSDK Team 004 * 005 * Licensed under the Apache License, Version 2.0 (the "License"); 006 * you may not use this file except in compliance with the License. 007 * You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017 018package net.tridentsdk.inventory; 019 020/** 021 * Type of inventories 022 * 023 * @author The TridentSDK Team 024 * @since 0.3-alpha-DP 025 */ 026public enum InventoryType { 027 CHEST("minecraft:chest", "Chest"), 028 CRAFTING_TABLE("minecraft:crafting_table", "Crafting Table"), 029 FURNACE("minecraft:furnace", "Furnace"), 030 DISPENSER("minecraft:dispenser", "Dispenser"), 031 ENCHANTING_TABLE("minecraft:enchanting_table", "Enchanting Table"), 032 BREWING_STAND("minecraft:brewing_stand", "Brewing Stand"), 033 VILLAGER_TRADE("minecraft:villager", "Villager"), 034 BEACON("minecraft:beacon", "Beacon"), 035 ANVIL("minecraft:anvil", "Anvil"), 036 HOPPER("minecraft:hopper", "Hopper"), 037 DROPPER("minecraft:dropper", "Dropper"), 038 HORSE("minecraft:horse", "Horse"); 039 040 private final String s; 041 private final String defaultName; 042 043 InventoryType(String s, String defaultName) { 044 this.s = s; 045 this.defaultName = defaultName; 046 } 047 048 /** 049 * Returns the Minecraft ID for the entity or block which holds the InventoryType 050 * 051 * @return String Minecraft ID for the entity or block which holds the InventoryType 052 */ 053 @Override 054 public String toString() { 055 return this.s; 056 } 057 058 public String defaultName(){ 059 return defaultName; 060 } 061 062}