Package net.createmod.ponder.api.scene
Interface WorldInstructions
- All Known Implementing Classes:
PonderSceneBuilder.PonderWorldInstructions
public interface WorldInstructions
-
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) net.minecraft.core.HolderLookup.ProvidervoidglueBlockOnto(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)
-
Method Details
-
getHolderLookupProvider
net.minecraft.core.HolderLookup.Provider getHolderLookupProvider() -
incrementBlockBreakingProgress
void incrementBlockBreakingProgress(net.minecraft.core.BlockPos pos) -
showSection
-
showSectionAndMerge
void showSectionAndMerge(Selection selection, net.minecraft.core.Direction fadeInDirection, ElementLink<WorldSectionElement> link) -
glueBlockOnto
void glueBlockOnto(net.minecraft.core.BlockPos position, net.minecraft.core.Direction fadeInDirection, ElementLink<WorldSectionElement> link) -
showIndependentSection
ElementLink<WorldSectionElement> showIndependentSection(Selection selection, net.minecraft.core.Direction fadeInDirection) -
showIndependentSectionImmediately
-
hideSection
-
hideIndependentSection
void hideIndependentSection(ElementLink<WorldSectionElement> link, net.minecraft.core.Direction fadeOutDirection) -
restoreBlocks
-
makeSectionIndependent
-
rotateSection
void rotateSection(ElementLink<WorldSectionElement> link, double xRotation, double yRotation, double zRotation, int duration) -
configureCenterOfRotation
void configureCenterOfRotation(ElementLink<WorldSectionElement> link, net.minecraft.world.phys.Vec3 anchor) -
configureStabilization
void configureStabilization(ElementLink<WorldSectionElement> link, net.minecraft.world.phys.Vec3 anchor) -
moveSection
void moveSection(ElementLink<WorldSectionElement> link, net.minecraft.world.phys.Vec3 offset, int duration) -
setBlocks
void setBlocks(Selection selection, net.minecraft.world.level.block.state.BlockState state, boolean spawnParticles) -
destroyBlock
void destroyBlock(net.minecraft.core.BlockPos pos) -
setBlock
void setBlock(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean spawnParticles) -
replaceBlocks
void replaceBlocks(Selection selection, net.minecraft.world.level.block.state.BlockState state, boolean spawnParticles) -
modifyBlock
void modifyBlock(net.minecraft.core.BlockPos pos, UnaryOperator<net.minecraft.world.level.block.state.BlockState> stateFunc, boolean spawnParticles) -
cycleBlockProperty
void cycleBlockProperty(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.properties.Property<?> property) -
modifyBlocks
void modifyBlocks(Selection selection, UnaryOperator<net.minecraft.world.level.block.state.BlockState> stateFunc, boolean spawnParticles) -
toggleRedstonePower
-
modifyEntities
-
modifyEntitiesInside
-
modifyEntity
void modifyEntity(ElementLink<EntityElement> link, Consumer<net.minecraft.world.entity.Entity> entityCallBack) -
createEntity
ElementLink<EntityElement> createEntity(Function<net.minecraft.world.level.Level, net.minecraft.world.entity.Entity> factory) -
createItemEntity
ElementLink<EntityElement> createItemEntity(net.minecraft.world.phys.Vec3 location, net.minecraft.world.phys.Vec3 motion, net.minecraft.world.item.ItemStack stack) -
modifyBlockEntityNBT
-
modifyBlockEntity
-
modifyBlockEntityNBT
-