Class RedstoneProgrammerBehaviour.BehaviourRedstoneProgram
java.lang.Object
petrolpark.mc.library.compat.create.shared.content.redstone.programmer.RedstoneProgram
petrolpark.mc.library.compat.create.shared.content.redstone.programmer.RedstoneProgrammerBehaviour.BehaviourRedstoneProgram
- Enclosing class:
RedstoneProgrammerBehaviour
-
Nested Class Summary
Nested classes/interfaces inherited from class petrolpark.mc.library.compat.create.shared.content.redstone.programmer.RedstoneProgram
RedstoneProgram.Channel, RedstoneProgram.ChannelData, RedstoneProgram.Factory<PROGRAM extends RedstoneProgram>, RedstoneProgram.PlayMode -
Field Summary
Fields inherited from class petrolpark.mc.library.compat.create.shared.content.redstone.programmer.RedstoneProgram
beatsPerLine, channels, ENCODER, length, linesPerBar, mode, notifiedChange, paused, pausedLastTick, playtime, poweredLastTick, ticksPerBeat, ticksToNextBeat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyFrom(RedstoneProgram.PlayMode mode, int length, int playtime, int ticksToNextBeat, boolean paused, boolean pausedLastTick, boolean poweredLastTick, List<RedstoneProgram.ChannelData> channels, int ticksPerBeat, int beatsPerLine, int linesPerBar) net.minecraft.core.BlockPosnet.minecraft.world.level.LevelAccessorgetWorld()booleanhasPower()booleanCopied from theCreate source code.voidtick()voidMethods inherited from class petrolpark.mc.library.compat.create.shared.content.redstone.programmer.RedstoneProgram
addBlankChannel, codec, copyFrom, equals, getAbsolutePlaytime, getBeatsPerLine, getChannelData, getChannels, getHandler, getLength, getLinesPerBar, getMode, getPlaytime, getTicksPerBeat, getTicksToNextBeat, hashCode, hasPowerChanged, isPaused, isValidWorld, load, remove, restart, setDuration, setTicksPerBeat, streamCodec, swap, translate, tryAddNewChannel, unload, wasPausedLastTick, wasPoweredLastTick, writeToMenu
-
Constructor Details
-
BehaviourRedstoneProgram
public BehaviourRedstoneProgram()
-
-
Method Details
-
hasPower
public boolean hasPower()- Specified by:
hasPowerin classRedstoneProgram
-
getBlockPos
public net.minecraft.core.BlockPos getBlockPos()- Specified by:
getBlockPosin classRedstoneProgram
-
shouldTransmit
public boolean shouldTransmit()Copied from theCreate source code.- Specified by:
shouldTransmitin classRedstoneProgram
-
getWorld
public net.minecraft.world.level.LevelAccessor getWorld()- Specified by:
getWorldin classRedstoneProgram
-
whenChanged
public void whenChanged()- Overrides:
whenChangedin classRedstoneProgram
-
tick
public void tick()- Overrides:
tickin classRedstoneProgram
-
getHashSalt
- Overrides:
getHashSaltin classRedstoneProgram
-