That might be a silly question, but how do I get a Dispenser variable at a given location? I wanted to do a type cast on player.getTargetBlock(), but it tells me "org.bukkit.craftbukkit.block.CraftBlock cannot be cast to org.bukkit.material.Dispenser" So how do I get a Dispenser variable representing the block the user faces (BTW, I checked before that it WAS a dispenser)? Or even a containerblock... Oh, wait, nevermind, I just had to do a cast on the Block.getState(). Any idea why? EDIT by Moderator: merged posts, please use the edit button instead of double posting.