Package net.createmod.ponder.foundation
Class SceneBuilder.WorldInstructions
java.lang.Object
net.createmod.ponder.foundation.SceneBuilder.WorldInstructions
- Enclosing class:
- SceneBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureCenterOfRotation(ElementLink<WorldSectionElement> link, net.minecraft.world.phys.Vec3 anchor) voidconfigureStabilization(ElementLink<WorldSectionElement> link, net.minecraft.world.phys.Vec3 anchor) createEntity(Function<net.minecraft.world.level.Level, net.minecraft.world.entity.Entity> factory) createItemEntity(net.minecraft.world.phys.Vec3 location, net.minecraft.world.phys.Vec3 motion, net.minecraft.world.item.ItemStack stack) voidcycleBlockProperty(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.properties.Property<?> property) voiddestroyBlock(net.minecraft.core.BlockPos pos) voidglueBlockOnto(net.minecraft.core.BlockPos position, net.minecraft.core.Direction fadeInDirection, ElementLink<WorldSectionElement> link) voidhideIndependentSection(ElementLink<WorldSectionElement> link, net.minecraft.core.Direction fadeOutDirection) voidhideSection(Selection selection, net.minecraft.core.Direction fadeOutDirection) voidincrementBlockBreakingProgress(net.minecraft.core.BlockPos pos) makeSectionIndependent(Selection selection) voidmodifyBlock(net.minecraft.core.BlockPos pos, UnaryOperator<net.minecraft.world.level.block.state.BlockState> stateFunc, boolean spawnParticles) <T extends net.minecraft.world.level.block.entity.BlockEntity>
voidmodifyBlockEntity(net.minecraft.core.BlockPos position, Class<T> beType, Consumer<T> consumer) voidmodifyBlockEntityNBT(Selection selection, Class<? extends net.minecraft.world.level.block.entity.BlockEntity> beType, Consumer<net.minecraft.nbt.CompoundTag> consumer) voidmodifyBlockEntityNBT(Selection selection, Class<? extends net.minecraft.world.level.block.entity.BlockEntity> teType, Consumer<net.minecraft.nbt.CompoundTag> consumer, boolean reDrawBlocks) voidmodifyBlocks(Selection selection, UnaryOperator<net.minecraft.world.level.block.state.BlockState> stateFunc, boolean spawnParticles) <T extends net.minecraft.world.entity.Entity>
voidmodifyEntities(Class<T> entityClass, Consumer<T> entityCallBack) <T extends net.minecraft.world.entity.Entity>
voidmodifyEntitiesInside(Class<T> entityClass, Selection area, Consumer<T> entityCallBack) voidmodifyEntity(ElementLink<EntityElement> link, Consumer<net.minecraft.world.entity.Entity> entityCallBack) voidmoveSection(ElementLink<WorldSectionElement> link, net.minecraft.world.phys.Vec3 offset, int duration) voidreplaceBlocks(Selection selection, net.minecraft.world.level.block.state.BlockState state, boolean spawnParticles) voidrestoreBlocks(Selection selection) voidrotateSection(ElementLink<WorldSectionElement> link, double xRotation, double yRotation, double zRotation, int duration) voidsetBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean spawnParticles) voidsetBlocks(Selection selection, net.minecraft.world.level.block.state.BlockState state, boolean spawnParticles) showIndependentSection(Selection selection, net.minecraft.core.Direction fadeInDirection) showIndependentSectionImmediately(Selection selection) voidshowSection(Selection selection, net.minecraft.core.Direction fadeInDirection) voidshowSectionAndMerge(Selection selection, net.minecraft.core.Direction fadeInDirection, ElementLink<WorldSectionElement> link) voidtoggleRedstonePower(Selection selection)
-
Constructor Details
-
WorldInstructions
public WorldInstructions()
-
-
Method Details
-
incrementBlockBreakingProgress
public void incrementBlockBreakingProgress(net.minecraft.core.BlockPos pos) -
showSection
-
showSectionAndMerge
public void showSectionAndMerge(Selection selection, net.minecraft.core.Direction fadeInDirection, ElementLink<WorldSectionElement> link) -
glueBlockOnto
public void glueBlockOnto(net.minecraft.core.BlockPos position, net.minecraft.core.Direction fadeInDirection, ElementLink<WorldSectionElement> link) -
showIndependentSection
public ElementLink<WorldSectionElement> showIndependentSection(Selection selection, net.minecraft.core.Direction fadeInDirection) -
showIndependentSectionImmediately
-
hideSection
-
hideIndependentSection
public void hideIndependentSection(ElementLink<WorldSectionElement> link, net.minecraft.core.Direction fadeOutDirection) -
restoreBlocks
-
makeSectionIndependent
-
rotateSection
public void rotateSection(ElementLink<WorldSectionElement> link, double xRotation, double yRotation, double zRotation, int duration) -
configureCenterOfRotation
public void configureCenterOfRotation(ElementLink<WorldSectionElement> link, net.minecraft.world.phys.Vec3 anchor) -
configureStabilization
public void configureStabilization(ElementLink<WorldSectionElement> link, net.minecraft.world.phys.Vec3 anchor) -
moveSection
public void moveSection(ElementLink<WorldSectionElement> link, net.minecraft.world.phys.Vec3 offset, int duration) -
setBlocks
public void setBlocks(Selection selection, net.minecraft.world.level.block.state.BlockState state, boolean spawnParticles) -
destroyBlock
public void destroyBlock(net.minecraft.core.BlockPos pos) -
setBlock
public void setBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean spawnParticles) -
replaceBlocks
public void replaceBlocks(Selection selection, net.minecraft.world.level.block.state.BlockState state, boolean spawnParticles) -
modifyBlock
public void modifyBlock(net.minecraft.core.BlockPos pos, UnaryOperator<net.minecraft.world.level.block.state.BlockState> stateFunc, boolean spawnParticles) -
cycleBlockProperty
public void cycleBlockProperty(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.properties.Property<?> property) -
modifyBlocks
public void modifyBlocks(Selection selection, UnaryOperator<net.minecraft.world.level.block.state.BlockState> stateFunc, boolean spawnParticles) -
toggleRedstonePower
-
modifyEntities
-
modifyEntitiesInside
-
modifyEntity
public void modifyEntity(ElementLink<EntityElement> link, Consumer<net.minecraft.world.entity.Entity> entityCallBack) -
createEntity
public ElementLink<EntityElement> createEntity(Function<net.minecraft.world.level.Level, net.minecraft.world.entity.Entity> factory) -
createItemEntity
public ElementLink<EntityElement> createItemEntity(net.minecraft.world.phys.Vec3 location, net.minecraft.world.phys.Vec3 motion, net.minecraft.world.item.ItemStack stack) -
modifyBlockEntityNBT
-
modifyBlockEntity
-
modifyBlockEntityNBT
-