Package net.createmod.ponder.foundation
Class PonderSceneBuilder.PonderWorldInstructions
java.lang.Object
net.createmod.ponder.foundation.PonderSceneBuilder.PonderWorldInstructions
- All Implemented Interfaces:
WorldInstructions
- Enclosing class:
PonderSceneBuilder
-
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
-
PonderWorldInstructions
public PonderWorldInstructions()
-
-
Method Details
-
incrementBlockBreakingProgress
public void incrementBlockBreakingProgress(net.minecraft.core.BlockPos pos) - Specified by:
incrementBlockBreakingProgressin interfaceWorldInstructions
-
showSection
- Specified by:
showSectionin interfaceWorldInstructions
-
showSectionAndMerge
public void showSectionAndMerge(Selection selection, net.minecraft.core.Direction fadeInDirection, ElementLink<WorldSectionElement> link) - Specified by:
showSectionAndMergein interfaceWorldInstructions
-
glueBlockOnto
public void glueBlockOnto(net.minecraft.core.BlockPos position, net.minecraft.core.Direction fadeInDirection, ElementLink<WorldSectionElement> link) - Specified by:
glueBlockOntoin interfaceWorldInstructions
-
showIndependentSection
public ElementLink<WorldSectionElement> showIndependentSection(Selection selection, net.minecraft.core.Direction fadeInDirection) - Specified by:
showIndependentSectionin interfaceWorldInstructions
-
showIndependentSectionImmediately
- Specified by:
showIndependentSectionImmediatelyin interfaceWorldInstructions
-
hideSection
- Specified by:
hideSectionin interfaceWorldInstructions
-
hideIndependentSection
public void hideIndependentSection(ElementLink<WorldSectionElement> link, net.minecraft.core.Direction fadeOutDirection) - Specified by:
hideIndependentSectionin interfaceWorldInstructions
-
restoreBlocks
- Specified by:
restoreBlocksin interfaceWorldInstructions
-
makeSectionIndependent
- Specified by:
makeSectionIndependentin interfaceWorldInstructions
-
rotateSection
public void rotateSection(ElementLink<WorldSectionElement> link, double xRotation, double yRotation, double zRotation, int duration) - Specified by:
rotateSectionin interfaceWorldInstructions
-
configureCenterOfRotation
public void configureCenterOfRotation(ElementLink<WorldSectionElement> link, net.minecraft.world.phys.Vec3 anchor) - Specified by:
configureCenterOfRotationin interfaceWorldInstructions
-
configureStabilization
public void configureStabilization(ElementLink<WorldSectionElement> link, net.minecraft.world.phys.Vec3 anchor) - Specified by:
configureStabilizationin interfaceWorldInstructions
-
moveSection
public void moveSection(ElementLink<WorldSectionElement> link, net.minecraft.world.phys.Vec3 offset, int duration) - Specified by:
moveSectionin interfaceWorldInstructions
-
setBlocks
public void setBlocks(Selection selection, net.minecraft.world.level.block.state.BlockState state, boolean spawnParticles) - Specified by:
setBlocksin interfaceWorldInstructions
-
destroyBlock
public void destroyBlock(net.minecraft.core.BlockPos pos) - Specified by:
destroyBlockin interfaceWorldInstructions
-
setBlock
public void setBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean spawnParticles) - Specified by:
setBlockin interfaceWorldInstructions
-
replaceBlocks
public void replaceBlocks(Selection selection, net.minecraft.world.level.block.state.BlockState state, boolean spawnParticles) - Specified by:
replaceBlocksin interfaceWorldInstructions
-
modifyBlock
public void modifyBlock(net.minecraft.core.BlockPos pos, UnaryOperator<net.minecraft.world.level.block.state.BlockState> stateFunc, boolean spawnParticles) - Specified by:
modifyBlockin interfaceWorldInstructions
-
cycleBlockProperty
public void cycleBlockProperty(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.properties.Property<?> property) - Specified by:
cycleBlockPropertyin interfaceWorldInstructions
-
modifyBlocks
public void modifyBlocks(Selection selection, UnaryOperator<net.minecraft.world.level.block.state.BlockState> stateFunc, boolean spawnParticles) - Specified by:
modifyBlocksin interfaceWorldInstructions
-
toggleRedstonePower
- Specified by:
toggleRedstonePowerin interfaceWorldInstructions
-
modifyEntities
public <T extends net.minecraft.world.entity.Entity> void modifyEntities(Class<T> entityClass, Consumer<T> entityCallBack) - Specified by:
modifyEntitiesin interfaceWorldInstructions
-
modifyEntitiesInside
public <T extends net.minecraft.world.entity.Entity> void modifyEntitiesInside(Class<T> entityClass, Selection area, Consumer<T> entityCallBack) - Specified by:
modifyEntitiesInsidein interfaceWorldInstructions
-
modifyEntity
public void modifyEntity(ElementLink<EntityElement> link, Consumer<net.minecraft.world.entity.Entity> entityCallBack) - Specified by:
modifyEntityin interfaceWorldInstructions
-
createEntity
public ElementLink<EntityElement> createEntity(Function<net.minecraft.world.level.Level, net.minecraft.world.entity.Entity> factory) - Specified by:
createEntityin interfaceWorldInstructions
-
createItemEntity
public ElementLink<EntityElement> createItemEntity(net.minecraft.world.phys.Vec3 location, net.minecraft.world.phys.Vec3 motion, net.minecraft.world.item.ItemStack stack) - Specified by:
createItemEntityin interfaceWorldInstructions
-
modifyBlockEntityNBT
public void modifyBlockEntityNBT(Selection selection, Class<? extends net.minecraft.world.level.block.entity.BlockEntity> beType, Consumer<net.minecraft.nbt.CompoundTag> consumer) - Specified by:
modifyBlockEntityNBTin interfaceWorldInstructions
-
modifyBlockEntity
public <T extends net.minecraft.world.level.block.entity.BlockEntity> void modifyBlockEntity(net.minecraft.core.BlockPos position, Class<T> beType, Consumer<T> consumer) - Specified by:
modifyBlockEntityin interfaceWorldInstructions
-
modifyBlockEntityNBT
public void modifyBlockEntityNBT(Selection selection, Class<? extends net.minecraft.world.level.block.entity.BlockEntity> teType, Consumer<net.minecraft.nbt.CompoundTag> consumer, boolean reDrawBlocks) - Specified by:
modifyBlockEntityNBTin interfaceWorldInstructions
-