public interface CollisionView extends BlockView
Modifier and Type | Method and Description |
---|---|
default boolean |
canPlace(BlockState state,
BlockPos pos,
ShapeContext context) |
default boolean |
doesNotCollide(Box box) |
default boolean |
doesNotCollide(Entity entity) |
default boolean |
doesNotCollide(Entity entity,
Box box) |
default boolean |
doesNotCollide(Entity entity,
Box box,
Predicate<Entity> predicate) |
default Stream<VoxelShape> |
getBlockCollisions(Entity entity,
Box box) |
default Stream<VoxelShape> |
getCollisions(Entity entity,
Box box,
Predicate<Entity> predicate) |
default Stream<VoxelShape> |
getEntityCollisions(Entity entity,
Box box,
Predicate<Entity> predicate) |
BlockView |
getExistingChunk(int chunkX,
int chunkZ) |
WorldBorder |
getWorldBorder() |
default boolean |
intersectsEntities(Entity entity) |
default boolean |
intersectsEntities(Entity except,
VoxelShape shape) |
static boolean |
method_27087(WorldBorder worldBorder,
Box box) |
getBlockEntity, getBlockState, getFluidState, getHeight, getLuminance, getMaxLightLevel, rayTrace, rayTrace, rayTraceBlock
WorldBorder getWorldBorder()
default boolean intersectsEntities(@Nullable Entity except, VoxelShape shape)
default boolean canPlace(BlockState state, BlockPos pos, ShapeContext context)
default boolean intersectsEntities(Entity entity)
default boolean doesNotCollide(Box box)
default boolean doesNotCollide(Entity entity)
default boolean doesNotCollide(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
default Stream<VoxelShape> getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
default Stream<VoxelShape> getCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)
default Stream<VoxelShape> getBlockCollisions(@Nullable Entity entity, Box box)
static boolean method_27087(WorldBorder worldBorder, Box box)