ExtraHoppers-forge/src/main/kotlin/net/shadowfacts/extrahoppers/block/base/TileEntityHopperBase.kt

15 lines
342 B
Kotlin

package net.shadowfacts.extrahoppers.block.base
import net.minecraft.util.EnumFacing
import net.shadowfacts.shadowmc.tileentity.BaseTileEntity
/**
* @author shadowfacts
*/
abstract class TileEntityHopperBase: BaseTileEntity() {
fun getHopperFacing(): EnumFacing {
return world.getBlockState(pos).getValue(BlockHopperBase.FACING)
}
}