Class SymmetryMirror
java.lang.Object
com.simibubi.create.content.curiosities.symmetry.mirror.SymmetryMirror
- Direct Known Subclasses:
CrossPlaneMirror,EmptyMirror,PlaneMirror,TriplePlaneMirror
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyModelTransform(com.mojang.blaze3d.vertex.PoseStack ms) protected net.minecraft.core.BlockPosflipD1(net.minecraft.core.BlockPos position) protected net.minecraft.world.level.block.state.BlockStateflipD1(net.minecraft.world.level.block.state.BlockState in) protected net.minecraft.core.BlockPosflipD2(net.minecraft.core.BlockPos position) protected net.minecraft.world.level.block.state.BlockStateflipD2(net.minecraft.world.level.block.state.BlockState in) protected net.minecraft.core.BlockPosflipX(net.minecraft.core.BlockPos position) protected net.minecraft.world.level.block.state.BlockStateflipX(net.minecraft.world.level.block.state.BlockState in) protected net.minecraft.core.BlockPosflipY(net.minecraft.core.BlockPos position) protected net.minecraft.world.level.block.state.BlockStateflipY(net.minecraft.world.level.block.state.BlockState in) protected net.minecraft.core.BlockPosflipZ(net.minecraft.core.BlockPos position) protected net.minecraft.world.level.block.state.BlockStateflipZ(net.minecraft.world.level.block.state.BlockState in) static SymmetryMirrorfromNBT(net.minecraft.nbt.CompoundTag nbt) abstract List<net.minecraft.network.chat.Component>protected net.minecraft.world.phys.Vec3getDiff(net.minecraft.core.BlockPos position) protected net.minecraft.core.BlockPosgetIDiff(net.minecraft.core.BlockPos position) static List<net.minecraft.network.chat.Component>abstract com.jozufozu.flywheel.core.PartialModelgetModel()net.minecraft.util.StringRepresentableintnet.minecraft.world.phys.Vec3voidabstract Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> process(net.minecraft.core.BlockPos position, net.minecraft.world.level.block.state.BlockState block) voidrotate(boolean forward) protected abstract voidabstract voidsetOrientation(int index) voidsetPosition(net.minecraft.world.phys.Vec3 pos3d) abstract StringtypeName()net.minecraft.nbt.CompoundTag
-
Field Details
-
EMPTY
- See Also:
-
PLANE
- See Also:
-
CROSS_PLANE
- See Also:
-
TRIPLE_PLANE
- See Also:
-
position
protected net.minecraft.world.phys.Vec3 position -
orientation
protected net.minecraft.util.StringRepresentable orientation -
orientationIndex
protected int orientationIndex -
enable
public boolean enable
-
-
Constructor Details
-
SymmetryMirror
public SymmetryMirror(net.minecraft.world.phys.Vec3 pos)
-
-
Method Details
-
getMirrors
-
getOrientation
public net.minecraft.util.StringRepresentable getOrientation() -
getPosition
public net.minecraft.world.phys.Vec3 getPosition() -
getOrientationIndex
public int getOrientationIndex() -
rotate
public void rotate(boolean forward) -
process
public void process(Map<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState> blocks) -
process
public abstract Map<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState> process(net.minecraft.core.BlockPos position, net.minecraft.world.level.block.state.BlockState block) -
setOrientation
protected abstract void setOrientation() -
setOrientation
public abstract void setOrientation(int index) -
typeName
-
getModel
public abstract com.jozufozu.flywheel.core.PartialModel getModel() -
applyModelTransform
public void applyModelTransform(com.mojang.blaze3d.vertex.PoseStack ms) -
writeToNbt
public net.minecraft.nbt.CompoundTag writeToNbt() -
fromNBT
-
getDiff
protected net.minecraft.world.phys.Vec3 getDiff(net.minecraft.core.BlockPos position) -
getIDiff
protected net.minecraft.core.BlockPos getIDiff(net.minecraft.core.BlockPos position) -
flipX
protected net.minecraft.world.level.block.state.BlockState flipX(net.minecraft.world.level.block.state.BlockState in) -
flipY
protected net.minecraft.world.level.block.state.BlockState flipY(net.minecraft.world.level.block.state.BlockState in) -
flipZ
protected net.minecraft.world.level.block.state.BlockState flipZ(net.minecraft.world.level.block.state.BlockState in) -
flipD1
protected net.minecraft.world.level.block.state.BlockState flipD1(net.minecraft.world.level.block.state.BlockState in) -
flipD2
protected net.minecraft.world.level.block.state.BlockState flipD2(net.minecraft.world.level.block.state.BlockState in) -
flipX
protected net.minecraft.core.BlockPos flipX(net.minecraft.core.BlockPos position) -
flipY
protected net.minecraft.core.BlockPos flipY(net.minecraft.core.BlockPos position) -
flipZ
protected net.minecraft.core.BlockPos flipZ(net.minecraft.core.BlockPos position) -
flipD2
protected net.minecraft.core.BlockPos flipD2(net.minecraft.core.BlockPos position) -
flipD1
protected net.minecraft.core.BlockPos flipD1(net.minecraft.core.BlockPos position) -
setPosition
public void setPosition(net.minecraft.world.phys.Vec3 pos3d) -
getAlignToolTips
-