30 lines
613 B
Java
30 lines
613 B
Java
package net.minecraft.world.level.block.entity;
|
|
|
|
import net.minecraft.world.Container;
|
|
import net.minecraft.world.level.block.Block;
|
|
import net.minecraft.world.phys.AABB;
|
|
|
|
public interface Hopper extends Container {
|
|
AABB SUCK_AABB = (AABB)Block.box(0.0, 11.0, 0.0, 16.0, 32.0, 16.0).toAabbs().get(0);
|
|
|
|
default AABB getSuckAabb() {
|
|
return SUCK_AABB;
|
|
}
|
|
|
|
/**
|
|
* @return the x position for this hopper.
|
|
*/
|
|
double getLevelX();
|
|
|
|
/**
|
|
* @return the x position for this hopper.
|
|
*/
|
|
double getLevelY();
|
|
|
|
/**
|
|
* @return the x position for this hopper.
|
|
*/
|
|
double getLevelZ();
|
|
|
|
boolean isGridAligned();
|
|
}
|