Class DynamicRedstoneTileMultipartTicking
java.lang.Object
org.cyclops.integrateddynamics.capability.dynamicredstone.DynamicRedstoneTileMultipartTicking
- All Implemented Interfaces:
IDynamicRedstone
Default implementation of
IDynamicRedstone
.-
Constructor Summary
ConstructorDescriptionDynamicRedstoneTileMultipartTicking
(BlockEntityMultipartTicking tile, net.minecraft.core.Direction side) -
Method Summary
Modifier and TypeMethodDescriptionint
protected org.cyclops.cyclopscore.datastructure.EnumFacingMap
<Boolean> int
Get the redstone level.protected org.cyclops.cyclopscore.datastructure.EnumFacingMap
<Integer> protected org.cyclops.cyclopscore.datastructure.EnumFacingMap
<Boolean> boolean
If this side allows redstone to be inputted.boolean
isDirect()
void
setAllowRedstoneInput
(boolean allow) Set if this side allows redstone to be inputted.void
setLastPulseValue
(int value) Store the last value that was used to trigger a redstone pulse.void
setRedstoneLevel
(int level, boolean direct) Set the redstone level.
-
Constructor Details
-
DynamicRedstoneTileMultipartTicking
public DynamicRedstoneTileMultipartTicking(BlockEntityMultipartTicking tile, net.minecraft.core.Direction side)
-
-
Method Details
-
getRedstoneLevels
-
getRedstoneInputs
-
getRedstoneStrong
-
setRedstoneLevel
public void setRedstoneLevel(int level, boolean direct) Description copied from interface:IDynamicRedstone
Set the redstone level.- Specified by:
setRedstoneLevel
in interfaceIDynamicRedstone
- Parameters:
level
- The redstone level.direct
- If the redstone power should be direct.
-
getRedstoneLevel
public int getRedstoneLevel()Description copied from interface:IDynamicRedstone
Get the redstone level.- Specified by:
getRedstoneLevel
in interfaceIDynamicRedstone
- Returns:
- The redstone level.
-
isDirect
public boolean isDirect()- Specified by:
isDirect
in interfaceIDynamicRedstone
- Returns:
- If the redstone power is direct.
-
setAllowRedstoneInput
public void setAllowRedstoneInput(boolean allow) Description copied from interface:IDynamicRedstone
Set if this side allows redstone to be inputted.- Specified by:
setAllowRedstoneInput
in interfaceIDynamicRedstone
- Parameters:
allow
- If it allows input.
-
isAllowRedstoneInput
public boolean isAllowRedstoneInput()Description copied from interface:IDynamicRedstone
If this side allows redstone to be inputted.- Specified by:
isAllowRedstoneInput
in interfaceIDynamicRedstone
- Returns:
- If it allows input.
-
setLastPulseValue
public void setLastPulseValue(int value) Description copied from interface:IDynamicRedstone
Store the last value that was used to trigger a redstone pulse.- Specified by:
setLastPulseValue
in interfaceIDynamicRedstone
- Parameters:
value
- A pulse value.
-
getLastPulseValue
public int getLastPulseValue()- Specified by:
getLastPulseValue
in interfaceIDynamicRedstone
- Returns:
- The last pulse value.
-