public class PokeGiftBlock extends net.minecraft.block.ContainerBlock implements IBlockHasOwner
net.minecraft.block.Block.RenderSideCacheKey
net.minecraft.block.AbstractBlock.AbstractBlockState, net.minecraft.block.AbstractBlock.IExtendedPositionPredicate<A>, net.minecraft.block.AbstractBlock.IPositionPredicate, net.minecraft.block.AbstractBlock.OffsetType, net.minecraft.block.AbstractBlock.Properties
Modifier and Type | Field and Description |
---|---|
static net.minecraft.state.DirectionProperty |
FACING |
protected java.lang.String |
itemName |
protected EnumPokegiftType |
type |
protected double |
xVel |
protected double |
yVel |
protected double |
zVel |
BLOCK_STATE_REGISTRY, LOGGER, RANDOM, stateDefinition
Constructor and Description |
---|
PokeGiftBlock() |
PokeGiftBlock(EnumPokegiftType type) |
Modifier and Type | Method and Description |
---|---|
protected void |
createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder) |
float |
getDestroyProgress(net.minecraft.block.BlockState state,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.util.math.shapes.VoxelShape |
getShape(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.shapes.ISelectionContext context) |
net.minecraft.block.BlockState |
getStateForPlacement(net.minecraft.item.BlockItemUseContext context) |
net.minecraft.tileentity.TileEntity |
newBlockEntity(net.minecraft.world.IBlockReader worldIn) |
void |
randomTick(net.minecraft.block.BlockState state,
net.minecraft.world.server.ServerWorld world,
net.minecraft.util.math.BlockPos pos,
java.util.Random random) |
boolean |
removedByPlayer(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
boolean willHarvest,
net.minecraft.fluid.FluidState fluid) |
net.minecraft.block.BlockState |
rotate(net.minecraft.block.BlockState p_185499_1_,
net.minecraft.util.Rotation p_185499_2_) |
void |
setOwner(net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity playerIn) |
net.minecraft.util.ActionResultType |
use(net.minecraft.block.BlockState state,
net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.Hand hand,
net.minecraft.util.math.BlockRayTraceResult hit) |
getMenuProvider, getRenderShape, triggerEvent
animateTick, appendHoverText, asBlock, asItem, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getSoundType, getSpeedFactor, getStateDefinition, getTags, handleRain, hasDynamicShape, is, is, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded
attack, canBeReplaced, canBeReplaced, canSurvive, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getOcclusionShape, getOffsetType, getPistonPushReaction, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isEntityBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onPlace, onProjectileHit, onRemove, skipRendering, spawnAfterBreak, tick, updateIndirectNeighbourShapes, updateShape, useShapeForLightOcclusion
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRespawnPosition, getSlipperiness, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasTileEntity, isAir, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public static final net.minecraft.state.DirectionProperty FACING
protected java.lang.String itemName
protected double xVel
protected double yVel
protected double zVel
protected EnumPokegiftType type
public PokeGiftBlock(EnumPokegiftType type)
public PokeGiftBlock()
public net.minecraft.block.BlockState rotate(net.minecraft.block.BlockState p_185499_1_, net.minecraft.util.Rotation p_185499_2_)
rotate
in class net.minecraft.block.AbstractBlock
protected void createBlockStateDefinition(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
createBlockStateDefinition
in class net.minecraft.block.Block
public net.minecraft.util.ActionResultType use(net.minecraft.block.BlockState state, net.minecraft.world.World worldIn, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, net.minecraft.util.math.BlockRayTraceResult hit)
use
in class net.minecraft.block.AbstractBlock
@Nullable public net.minecraft.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext context)
getStateForPlacement
in class net.minecraft.block.Block
public float getDestroyProgress(net.minecraft.block.BlockState state, net.minecraft.entity.player.PlayerEntity player, net.minecraft.world.IBlockReader worldIn, net.minecraft.util.math.BlockPos pos)
getDestroyProgress
in class net.minecraft.block.AbstractBlock
public boolean removedByPlayer(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player, boolean willHarvest, net.minecraft.fluid.FluidState fluid)
removedByPlayer
in interface net.minecraftforge.common.extensions.IForgeBlock
public net.minecraft.tileentity.TileEntity newBlockEntity(net.minecraft.world.IBlockReader worldIn)
newBlockEntity
in interface net.minecraft.block.ITileEntityProvider
public void randomTick(net.minecraft.block.BlockState state, net.minecraft.world.server.ServerWorld world, net.minecraft.util.math.BlockPos pos, java.util.Random random)
randomTick
in class net.minecraft.block.AbstractBlock
public net.minecraft.util.math.shapes.VoxelShape getShape(net.minecraft.block.BlockState state, net.minecraft.world.IBlockReader worldIn, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.shapes.ISelectionContext context)
getShape
in class net.minecraft.block.AbstractBlock
public void setOwner(net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity playerIn)
setOwner
in interface IBlockHasOwner