JACV
我LocationgetBlock确定那个是箱子. 但是Chest chest = (Chest) Block却报ClassException. 说不能变成箱子...
还有,把ItemStack用getInventroy().addItem(ItemStack)方法放进箱子应该是这样吧?但是老是实现不起来...
求高手告知

a8105
Chest chest=(Chest)block.getState();

JACV
810587921 发表于 2017-4-12 20:18
Chest chest=(Chest)block.getState();

getState().....吗.........我的天....