public class AxisStructureGelBlock extends StructureGelBlock
StructureGelBlock
contains a blockstate for its
axis, and it uses it to only spread in a flat plane.net.minecraft.block.Block.OffsetType, net.minecraft.block.Block.Properties, net.minecraft.block.Block.RenderSideCacheKey
IStructureGel.Behavior, IStructureGel.IBehavior
Modifier and Type | Field and Description |
---|---|
static net.minecraft.state.EnumProperty<net.minecraft.util.Direction.Axis> |
AXIS |
behaviors, COUNT
Constructor and Description |
---|
AxisStructureGelBlock(IStructureGel.Behavior... behaviors) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.block.BlockState |
onHandPlaceHook(net.minecraft.item.BlockItemUseContext context)
Using the hook to set the axis of this gel based on the look vector of the
player, similar to pistons.
|
boolean |
spreadHookPre(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random random)
Spreads the gel along a flat plane and then cancels the normal spread action
in
StructureGelBlock.tick(BlockState, net.minecraft.world.server.ServerWorld, BlockPos, Random) . |
addGel, canEntitySpawn, causesSuffocation, checkAbove, getAmbientOcclusionLightValue, getCollisionShape, getStateForPlacement, isNormalCube, isSideInvisible, onBlockActivated, onBlockHarvested, onBlockPlacedBy, propagatesSkylightDown, removeGel, setGel, tick
addInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getBlockFromItem, getBlockHardness, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getShape, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSolid, isTransparent, isValidPosition, isVariableOpacity, isViewBlocking, makeCuboidShape, mirror, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockAdded, onBlockClicked, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, onReplaced, randomTick, replaceBlock, rotate, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors, updatePostPlacement
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkPlacementHook, removalHookPost, removalHookPre, spreadHookPost
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public static final net.minecraft.state.EnumProperty<net.minecraft.util.Direction.Axis> AXIS
public AxisStructureGelBlock(IStructureGel.Behavior... behaviors)
public net.minecraft.block.BlockState onHandPlaceHook(net.minecraft.item.BlockItemUseContext context)
BlockState
public boolean spreadHookPre(net.minecraft.block.BlockState state, net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos pos, java.util.Random random)
StructureGelBlock.tick(BlockState, net.minecraft.world.server.ServerWorld, BlockPos, Random)
.