Package net.createmod.ponder.foundation
Class PonderScene
java.lang.Object
net.createmod.ponder.foundation.PonderScene
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclass -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPonderScene(PonderLevel world, PonderLocalization localization, String namespace, net.minecraft.resources.ResourceLocation location, Collection<net.minecraft.resources.ResourceLocation> tags, Collection<StoryBoardEntry.SceneOrderingEntry> orderingEntries) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddToSceneTime(int time) <E extends PonderElement,F>
FapplyTo(ElementLink<E> link, Function<E, F> function) voidbegin()builder()voiddeselect()voidfadeOut()<T extends PonderElement>
voidvoidforEach(Consumer<? super PonderElement> function) <T extends PonderElement>
voidforEachVisible(Class<T> type, Consumer<T> function) <T extends net.minecraft.world.entity.Entity>
voidforEachWorldEntity(Class<T> type, Consumer<T> function) intintintnet.minecraft.world.level.levelgen.structure.BoundingBoxintnet.minecraft.resources.ResourceLocationgetId()intintgetKeyframeTime(int index) net.minecraft.resources.ResourceLocationnet.createmod.catnip.utility.outliner.Outlinernet.minecraft.world.phys.Vec3floatfloatgetTags()getTitle()intgetWorld()floatbooleanboolean<E extends PonderElement>
voidlinkElement(E e, ElementLink<E> link) voidmarkKeyframe(int offset) net.createmod.catnip.utility.Pair<net.minecraft.world.item.ItemStack,net.minecraft.core.BlockPos> rayTraceScene(net.minecraft.world.phys.Vec3 from, net.minecraft.world.phys.Vec3 to) com.jozufozu.flywheel.util.NonNullSupplier<String>registerText(String defaultText) voidrenderOverlay(PonderUI screen, com.mojang.blaze3d.vertex.PoseStack ms, float partialTicks) voidrenderScene(net.createmod.catnip.render.SuperRenderTypeBuffer buffer, com.mojang.blaze3d.vertex.PoseStack ms, float pt) voidreset()<E extends PonderElement>
Eresolve(ElementLink<E> link) <E extends PonderElement>
Optional<E>resolveOptional(ElementLink<E> link) <E extends PonderElement>
voidrunWith(ElementLink<E> link, Consumer<E> callback) voidseekToTime(int time) voidsetFinished(boolean finished) voidsetNextUpEnabled(boolean nextUpEnabled) voidsetPointOfInterest(net.minecraft.world.phys.Vec3 poi) booleanvoidvoidtick()
-
Field Details
-
TITLE_KEY
- See Also:
-
-
Constructor Details
-
PonderScene
public PonderScene(@Nullable PonderLevel world, PonderLocalization localization, String namespace, net.minecraft.resources.ResourceLocation location, Collection<net.minecraft.resources.ResourceLocation> tags, Collection<StoryBoardEntry.SceneOrderingEntry> orderingEntries)
-
-
Method Details
-
deselect
public void deselect() -
rayTraceScene
public net.createmod.catnip.utility.Pair<net.minecraft.world.item.ItemStack,net.minecraft.core.BlockPos> rayTraceScene(net.minecraft.world.phys.Vec3 from, net.minecraft.world.phys.Vec3 to) -
reset
public void reset() -
begin
public void begin() -
getBaseWorldSection
-
getSceneProgress
public float getSceneProgress() -
fadeOut
public void fadeOut() -
renderScene
public void renderScene(net.createmod.catnip.render.SuperRenderTypeBuffer buffer, com.mojang.blaze3d.vertex.PoseStack ms, float pt) -
renderOverlay
public void renderOverlay(PonderUI screen, com.mojang.blaze3d.vertex.PoseStack ms, float partialTicks) -
setPointOfInterest
public void setPointOfInterest(net.minecraft.world.phys.Vec3 poi) -
getPointOfInterest
public net.minecraft.world.phys.Vec3 getPointOfInterest() -
tick
public void tick() -
seekToTime
public void seekToTime(int time) -
addToSceneTime
public void addToSceneTime(int time) -
stopCounting
public void stopCounting() -
markKeyframe
public void markKeyframe(int offset) -
addElement
-
linkElement
-
resolve
-
resolveOptional
-
runWith
-
applyTo
-
forEach
-
forEach
-
forEachVisible
-
forEachWorldEntity
-
registerText
-
builder
-
getSceneBuildingUtil
-
getTitle
-
getString
-
getWorld
-
getNamespace
-
getKeyframeCount
public int getKeyframeCount() -
getKeyframeTime
public int getKeyframeTime(int index) -
getTags
-
getOrderingEntries
-
getLocation
public net.minecraft.resources.ResourceLocation getLocation() -
getElements
-
getBounds
public net.minecraft.world.level.levelgen.structure.BoundingBox getBounds() -
getId
public net.minecraft.resources.ResourceLocation getId() -
getTransform
-
getOutliner
public net.createmod.catnip.utility.outliner.Outliner getOutliner() -
isFinished
public boolean isFinished() -
setFinished
public void setFinished(boolean finished) -
getBasePlateOffsetX
public int getBasePlateOffsetX() -
getBasePlateOffsetZ
public int getBasePlateOffsetZ() -
shouldHidePlatformShadow
public boolean shouldHidePlatformShadow() -
getBasePlateSize
public int getBasePlateSize() -
getScaleFactor
public float getScaleFactor() -
getYOffset
public float getYOffset() -
getTotalTime
public int getTotalTime() -
getCurrentTime
public int getCurrentTime() -
setNextUpEnabled
public void setNextUpEnabled(boolean nextUpEnabled) -
isNextUpEnabled
public boolean isNextUpEnabled()
-