Class BreachPortalBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
com.blamejared.the_breach.world.level.block.BreachPortalBlock
- All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.minecraft.world.level.block.Portal, net.minecraft.world.level.ItemLike
public class BreachPortalBlock
extends net.minecraft.world.level.block.Block
implements net.minecraft.world.level.block.Portal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block
net.minecraft.world.level.block.Block.UpdateFlagsNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.state.BlockBehaviour.BlockStateBase, net.minecraft.world.level.block.state.BlockBehaviour.OffsetFunction, net.minecraft.world.level.block.state.BlockBehaviour.OffsetType, net.minecraft.world.level.block.state.BlockBehaviour.PostProcess, net.minecraft.world.level.block.state.BlockBehaviour.Properties, net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<A>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicateNested classes/interfaces inherited from interface net.minecraft.world.level.block.Portal
net.minecraft.world.level.block.Portal.Transition -
Field Summary
Fields inherited from class net.minecraft.world.level.block.Block
BLOCK_STATE_REGISTRY, CODEC, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SKIP_ALL_SIDEEFFECTS, UPDATE_SKIP_BLOCK_ENTITY_SIDEEFFECTS, UPDATE_SKIP_ON_PLACE, UPDATE_SKIP_SHAPE_UPDATE_ON_WIRE, UPDATE_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviour
descriptionId, drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElement
FILTERED_REGISTRIES -
Constructor Summary
ConstructorsConstructorDescriptionBreachPortalBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanBeReplaced(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.material.Fluid fluid) static voidcreatePlatform(net.minecraft.world.level.ServerLevelAccessor newLevel, net.minecraft.core.BlockPos origin) protected voidentityInside(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.InsideBlockEffectApplier effectApplier, boolean isPrecise) protected net.minecraft.world.item.ItemStackgetCloneItemStack(net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean includeData) static net.minecraft.world.level.block.state.pattern.BlockPattern@Nullable net.minecraft.world.level.portal.TeleportTransitiongetPortalDestination(net.minecraft.server.level.ServerLevel currentLevel, net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos portalEntryPos) protected booleanskipRendering(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.BlockState neighborState, net.minecraft.core.Direction direction) protected net.minecraft.world.level.block.state.BlockStateupdateShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.world.level.ScheduledTickAccess ticks, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction directionToNeighbour, net.minecraft.core.BlockPos neighbourPos, net.minecraft.world.level.block.state.BlockState neighbourState, net.minecraft.util.RandomSource random) Methods inherited from class net.minecraft.world.level.block.Block
animateTick, asBlock, asItem, box, boxes, boxZ, boxZ, boxZ, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, codec, column, column, createBlockStateDefinition, cube, cube, defaultBlockState, destroy, dropFromBlockInteractLootTable, dropFromExplosion, dropFromLootTable, dropResources, dropResources, dropResources, fallOn, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getShapeForEachState, getShapeForEachState, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityMovementAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviour
affectNeighborsAfterRemoval, attack, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDescriptionId, getDestroyProgress, getDirectSignal, getDrops, getEntityInsideCollisionShape, getFluidState, getInteractionShape, getLightDampening, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isCollisionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onPlace, onProjectileHit, propagatesSkylightDown, properties, propertiesCodec, randomTick, requiredFeatures, rotate, shouldChangedStateKeepBlockEntity, simpleCodec, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, useItemOn, useShapeForLightOcclusion, useWithoutItemMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElement
isEnabledMethods inherited from interface net.minecraft.world.level.block.Portal
getLocalTransition, getPortalTransitionTime
-
Constructor Details
-
BreachPortalBlock
public BreachPortalBlock(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties)
-
-
Method Details
-
entityInside
protected void entityInside(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.Entity entity, net.minecraft.world.entity.InsideBlockEffectApplier effectApplier, boolean isPrecise) - Overrides:
entityInsidein classnet.minecraft.world.level.block.state.BlockBehaviour
-
getPortalDestination
public @Nullable net.minecraft.world.level.portal.TeleportTransition getPortalDestination(net.minecraft.server.level.ServerLevel currentLevel, net.minecraft.world.entity.Entity entity, net.minecraft.core.BlockPos portalEntryPos) - Specified by:
getPortalDestinationin interfacenet.minecraft.world.level.block.Portal
-
createPlatform
public static void createPlatform(net.minecraft.world.level.ServerLevelAccessor newLevel, net.minecraft.core.BlockPos origin) -
updateShape
protected net.minecraft.world.level.block.state.BlockState updateShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelReader level, net.minecraft.world.level.ScheduledTickAccess ticks, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction directionToNeighbour, net.minecraft.core.BlockPos neighbourPos, net.minecraft.world.level.block.state.BlockState neighbourState, net.minecraft.util.RandomSource random) - Overrides:
updateShapein classnet.minecraft.world.level.block.state.BlockBehaviour
-
skipRendering
protected boolean skipRendering(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.BlockState neighborState, net.minecraft.core.Direction direction) - Overrides:
skipRenderingin classnet.minecraft.world.level.block.state.BlockBehaviour
-
getCloneItemStack
protected net.minecraft.world.item.ItemStack getCloneItemStack(net.minecraft.world.level.LevelReader level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean includeData) - Overrides:
getCloneItemStackin classnet.minecraft.world.level.block.state.BlockBehaviour
-
canBeReplaced
protected boolean canBeReplaced(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.material.Fluid fluid) - Overrides:
canBeReplacedin classnet.minecraft.world.level.block.state.BlockBehaviour
-
getOrCreatePortalShape
public static net.minecraft.world.level.block.state.pattern.BlockPattern getOrCreatePortalShape()
-