public interface IStructureGel
StructureGelBlock
's behaviorModifier and Type | Interface and Description |
---|---|
static class |
IStructureGel.Behavior
Determines how the structure gel should act and provides translations for the
item.
|
static interface |
IStructureGel.IBehavior
Extend off of this to make your own behaviors.
|
Modifier and Type | Method and Description |
---|---|
default boolean |
checkPlacementHook(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos spreadPos,
int count)
Called when the gel checks if it can spread to a given location.
|
default net.minecraft.block.BlockState |
onHandPlaceHook(net.minecraft.item.BlockItemUseContext context)
Called when placed by hand to get what state this should place as.
|
default void |
removalHookPost(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random random)
Called after the gel finishes it's steps for chain removal
|
default boolean |
removalHookPre(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random random)
Called before the gel begins to remove itself.
|
default void |
spreadHookPost(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random random)
Called after the gel finishes spreading to append additional actions
|
default boolean |
spreadHookPre(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random random)
Called before the gel spreads.
|
default boolean spreadHookPre(net.minecraft.block.BlockState state, net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos pos, java.util.Random random)
state
- worldIn
- pos
- random
- Boolean
default boolean removalHookPre(net.minecraft.block.BlockState state, net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos pos, java.util.Random random)
state
- worldIn
- pos
- random
- Boolean
default void spreadHookPost(net.minecraft.block.BlockState state, net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos pos, java.util.Random random)
state
- worldIn
- pos
- random
- default void removalHookPost(net.minecraft.block.BlockState state, net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos pos, java.util.Random random)
state
- worldIn
- pos
- random
- default boolean checkPlacementHook(net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos spreadPos, int count)
worldIn
- spreadPos
- : where the gel is trying to spreadcount
- : the StructureGelBlock.COUNT
property to place asBoolean
@Nullable default net.minecraft.block.BlockState onHandPlaceHook(net.minecraft.item.BlockItemUseContext context)
context
- BlockState