Search in sources :

Example 16 with IntegerAABBInclusive

use of com.qouteall.immersive_portals.my_util.IntegerAABBInclusive in project ImmersivePortalsMod by qouteall.

the class NetherPortalGenerator method generatePortalContentBlocks.

private static void generatePortalContentBlocks(ServerWorld world, ObsidianFrame obsidianFrame) {
    IntegerAABBInclusive contentBlockArea = obsidianFrame.boxWithoutObsidian;
    contentBlockArea.stream().forEach(blockPos -> setPortalContentBlock(world, blockPos, obsidianFrame.normalAxis));
}
Also used : IntegerAABBInclusive(com.qouteall.immersive_portals.my_util.IntegerAABBInclusive)

Aggregations

IntegerAABBInclusive (com.qouteall.immersive_portals.my_util.IntegerAABBInclusive)16 BlockPos (net.minecraft.util.math.BlockPos)10 Direction (net.minecraft.util.math.Direction)6 DimensionType (net.minecraft.world.dimension.DimensionType)5 Helper (com.qouteall.immersive_portals.Helper)4 Arrays (java.util.Arrays)4 Objects (java.util.Objects)4 Blocks (net.minecraft.block.Blocks)4 Vec3d (net.minecraft.util.math.Vec3d)4 ServerWorld (net.minecraft.server.world.ServerWorld)3 McHelper (com.qouteall.immersive_portals.McHelper)2 PortalPlaceholderBlock (com.qouteall.immersive_portals.portal.PortalPlaceholderBlock)2 Optional (java.util.Optional)2 Predicate (java.util.function.Predicate)2 IntStream (java.util.stream.IntStream)2 Stream (java.util.stream.Stream)2 CustomPayloadS2CPacket (net.minecraft.client.network.packet.CustomPayloadS2CPacket)2 ServerPlayerEntity (net.minecraft.server.network.ServerPlayerEntity)2 Pair (net.minecraft.util.Pair)2 Vec3i (net.minecraft.util.math.Vec3i)2