Class AbstractRadialLikeLayer
java.lang.Object
fr.rodofire.ewc.shape.block.layer.AbstractRadialLikeLayer
- All Implemented Interfaces:
Layer
- Direct Known Subclasses:
AbstractOuterLayer,InnerCylindricalLayer,InnerRadialLayer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BlockLayerManagerprotected net.minecraft.world.phys.Vec3protected net.minecraft.world.phys.Vec3 -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract intfindLayerIndex(int[] layerDistance, float distance) <T extends Collection<net.minecraft.core.BlockPos>>
BlockListManagerget(T posList) <U extends it.unimi.dsi.fastutil.longs.AbstractLongCollection>
BlockListManagerget(U posList) net.minecraft.world.phys.Vec3net.minecraft.world.phys.Vec3protected abstract floatgetDistance(int[] pos) protected abstract floatgetDistance(int posX, int posY, int posZ) getDivided(Map<net.minecraft.world.level.ChunkPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet> posMap) <T extends Collection<net.minecraft.core.BlockPos>>
DividedBlockListManagergetDivided(T posList) <U extends it.unimi.dsi.fastutil.longs.AbstractLongCollection>
DividedBlockListManagergetDivided(U posList) getVerified(net.minecraft.world.level.WorldGenLevel world, Map<net.minecraft.world.level.ChunkPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet> posMap) <T extends Collection<net.minecraft.core.BlockPos>>
BlockListManagergetVerified(net.minecraft.world.level.WorldGenLevel world, T posList) <U extends it.unimi.dsi.fastutil.longs.AbstractLongCollection>
BlockListManagergetVerified(net.minecraft.world.level.WorldGenLevel world, U posList) getVerifiedDivided(net.minecraft.world.level.WorldGenLevel world, Map<net.minecraft.world.level.ChunkPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet> posMap) <T extends Collection<net.minecraft.core.BlockPos>>
DividedBlockListManagergetVerifiedDivided(net.minecraft.world.level.WorldGenLevel world, T posList) <U extends it.unimi.dsi.fastutil.longs.AbstractLongCollection>
DividedBlockListManagergetVerifiedDivided(net.minecraft.world.level.WorldGenLevel world, U posList) voidplace(net.minecraft.world.level.WorldGenLevel world, Map<net.minecraft.world.level.ChunkPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet> posMap) <T extends Collection<net.minecraft.core.BlockPos>>
voidplace(net.minecraft.world.level.WorldGenLevel world, T posList) <U extends it.unimi.dsi.fastutil.longs.AbstractLongCollection>
voidplace(net.minecraft.world.level.WorldGenLevel world, U posList) voidsetCenterPos(net.minecraft.world.phys.Vec3 centerPos) voidsetDirectionVector(net.minecraft.core.Vec3i directionVector)
-
Field Details
-
blockLayer
-
centerPos
protected net.minecraft.world.phys.Vec3 centerPos -
directionVector
protected net.minecraft.world.phys.Vec3 directionVector
-
-
Method Details
-
get
public BlockListManager get(Map<net.minecraft.world.level.ChunkPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet> posMap) -
place
public void place(net.minecraft.world.level.WorldGenLevel world, Map<net.minecraft.world.level.ChunkPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet> posMap) -
getVerified
public BlockListManager getVerified(net.minecraft.world.level.WorldGenLevel world, Map<net.minecraft.world.level.ChunkPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet> posMap) -
getDivided
public DividedBlockListManager getDivided(Map<net.minecraft.world.level.ChunkPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet> posMap) -
getVerifiedDivided
public DividedBlockListManager getVerifiedDivided(net.minecraft.world.level.WorldGenLevel world, Map<net.minecraft.world.level.ChunkPos, it.unimi.dsi.fastutil.longs.LongOpenHashSet> posMap) -
get
-
place
public <T extends Collection<net.minecraft.core.BlockPos>> void place(net.minecraft.world.level.WorldGenLevel world, T posList) -
getVerified
public <T extends Collection<net.minecraft.core.BlockPos>> BlockListManager getVerified(net.minecraft.world.level.WorldGenLevel world, T posList) -
getDivided
public <T extends Collection<net.minecraft.core.BlockPos>> DividedBlockListManager getDivided(T posList) -
getVerifiedDivided
public <T extends Collection<net.minecraft.core.BlockPos>> DividedBlockListManager getVerifiedDivided(net.minecraft.world.level.WorldGenLevel world, T posList) -
get
public <U extends it.unimi.dsi.fastutil.longs.AbstractLongCollection> BlockListManager get(U posList) -
place
public <U extends it.unimi.dsi.fastutil.longs.AbstractLongCollection> void place(net.minecraft.world.level.WorldGenLevel world, U posList) -
getVerified
public <U extends it.unimi.dsi.fastutil.longs.AbstractLongCollection> BlockListManager getVerified(net.minecraft.world.level.WorldGenLevel world, U posList) -
getDivided
public <U extends it.unimi.dsi.fastutil.longs.AbstractLongCollection> DividedBlockListManager getDivided(U posList) -
getVerifiedDivided
public <U extends it.unimi.dsi.fastutil.longs.AbstractLongCollection> DividedBlockListManager getVerifiedDivided(net.minecraft.world.level.WorldGenLevel world, U posList) -
getDistance
protected abstract float getDistance(int[] pos) -
getDistance
protected abstract float getDistance(int posX, int posY, int posZ) -
findLayerIndex
protected abstract int findLayerIndex(int[] layerDistance, float distance) -
getCenterPos
public net.minecraft.world.phys.Vec3 getCenterPos()- Specified by:
getCenterPosin interfaceLayer
-
setCenterPos
public void setCenterPos(net.minecraft.world.phys.Vec3 centerPos) - Specified by:
setCenterPosin interfaceLayer
-
getDirectionVector
public net.minecraft.world.phys.Vec3 getDirectionVector()- Specified by:
getDirectionVectorin interfaceLayer
-
setDirectionVector
public void setDirectionVector(net.minecraft.core.Vec3i directionVector) - Specified by:
setDirectionVectorin interfaceLayer
-