public class BlockBoxOfEternalClosure extends org.cyclops.cyclopscore.block.BlockTile implements IBlockRarityProvider
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.item.ItemStack |
boxOfEternalClosureFilled |
static net.minecraft.state.DirectionProperty |
FACING |
static java.lang.String |
FORGOTTEN_PLAYER |
static net.minecraft.util.math.shapes.VoxelShape |
SHAPE_EW |
static net.minecraft.util.math.shapes.VoxelShape |
SHAPE_NS |
| Constructor and Description |
|---|
BlockBoxOfEternalClosure(net.minecraft.block.Block.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDestroyEffects(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.client.particle.ParticleManager particleManager) |
boolean |
addHitEffects(net.minecraft.block.BlockState blockState,
net.minecraft.world.World world,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.client.particle.ParticleManager particleManager) |
boolean |
addLandingEffects(net.minecraft.block.BlockState blockState,
net.minecraft.world.server.ServerWorld world,
net.minecraft.util.math.BlockPos blockPosition,
net.minecraft.block.BlockState iblockstate,
net.minecraft.entity.LivingEntity entity,
int numberOfParticles) |
void |
fillItemGroup(net.minecraft.item.ItemGroup group,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items) |
protected void |
fillStateContainer(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder) |
int |
getComparatorInputOverride(net.minecraft.block.BlockState blockState,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos) |
int |
getLightValue(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos) |
static java.lang.String |
getPlayerId(net.minecraft.item.ItemStack itemStack) |
static java.lang.String |
getPlayerName(net.minecraft.item.ItemStack itemStack) |
net.minecraft.item.Rarity |
getRarity(net.minecraft.item.ItemStack itemStack) |
net.minecraft.block.BlockRenderType |
getRenderType(net.minecraft.block.BlockState blockState) |
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) |
static net.minecraft.entity.EntityType<?> |
getSpiritTypeRaw(net.minecraft.nbt.CompoundNBT tag) |
static net.minecraft.entity.EntityType<?> |
getSpiritTypeWithFallbackSpirit(net.minecraft.item.ItemStack itemStack) |
net.minecraft.block.BlockState |
getStateForPlacement(net.minecraft.item.BlockItemUseContext context) |
boolean |
hasComparatorInputOverride(net.minecraft.block.BlockState blockState) |
static boolean |
hasPlayer(net.minecraft.item.ItemStack itemStack) |
boolean |
isValidPosition(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader worldIn,
net.minecraft.util.math.BlockPos pos) |
net.minecraft.util.ActionResultType |
onBlockActivated(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 handIn,
net.minecraft.util.math.BlockRayTraceResult blockRayTraceResult) |
static void |
setPlayerContent(net.minecraft.item.ItemStack itemStack,
java.util.UUID playerId)
Put a player inside the given box.
|
static void |
setVengeanceSwarmContent(net.minecraft.item.ItemStack itemStack)
Put a vengeance swarm inside the given box.
|
void |
tick(net.minecraft.block.BlockState state,
net.minecraft.world.server.ServerWorld worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random rand) |
net.minecraft.block.BlockState |
updatePostPlacement(net.minecraft.block.BlockState stateIn,
net.minecraft.util.Direction facing,
net.minecraft.block.BlockState facingState,
net.minecraft.world.IWorld worldIn,
net.minecraft.util.math.BlockPos currentPos,
net.minecraft.util.math.BlockPos facingPos) |
createNewTileEntity, getDroppedItemStack, getDroppedItemStackNbt, getPickBlock, isPersistNbt, onBlockHarvestedaddInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isTransparent, isVariableOpacity, isViewBlocking, makeCuboidShape, mirror, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockAdded, onBlockClicked, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, onReplaced, propagatesSkylightDown, randomTick, replaceBlock, rotate, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighborsgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddRunningEffects, 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, 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, shouldDisplayFluidOverlaypublic static final java.lang.String FORGOTTEN_PLAYER
public static final net.minecraft.state.DirectionProperty FACING
public static final net.minecraft.util.math.shapes.VoxelShape SHAPE_EW
public static final net.minecraft.util.math.shapes.VoxelShape SHAPE_NS
public static net.minecraft.item.ItemStack boxOfEternalClosureFilled
public BlockBoxOfEternalClosure(net.minecraft.block.Block.Properties properties)
protected void fillStateContainer(net.minecraft.state.StateContainer.Builder<net.minecraft.block.Block,net.minecraft.block.BlockState> builder)
fillStateContainer in class net.minecraft.block.Blockpublic net.minecraft.block.BlockState getStateForPlacement(net.minecraft.item.BlockItemUseContext context)
getStateForPlacement in class net.minecraft.block.Blockpublic 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.Blockpublic net.minecraft.block.BlockRenderType getRenderType(net.minecraft.block.BlockState blockState)
getRenderType in class org.cyclops.cyclopscore.block.BlockTile@Nullable public static net.minecraft.entity.EntityType<?> getSpiritTypeWithFallbackSpirit(net.minecraft.item.ItemStack itemStack)
@Nullable
public static net.minecraft.entity.EntityType<?> getSpiritTypeRaw(@Nullable
net.minecraft.nbt.CompoundNBT tag)
public static void setVengeanceSwarmContent(net.minecraft.item.ItemStack itemStack)
itemStack - The box.public static void setPlayerContent(net.minecraft.item.ItemStack itemStack,
java.util.UUID playerId)
itemStack - The box.playerId - The player id to set.public static java.lang.String getPlayerName(net.minecraft.item.ItemStack itemStack)
public static java.lang.String getPlayerId(net.minecraft.item.ItemStack itemStack)
public static boolean hasPlayer(net.minecraft.item.ItemStack itemStack)
public boolean isValidPosition(net.minecraft.block.BlockState state,
net.minecraft.world.IWorldReader worldIn,
net.minecraft.util.math.BlockPos pos)
isValidPosition in class net.minecraft.block.Blockpublic void tick(net.minecraft.block.BlockState state,
net.minecraft.world.server.ServerWorld worldIn,
net.minecraft.util.math.BlockPos pos,
java.util.Random rand)
tick in class net.minecraft.block.Blockpublic net.minecraft.block.BlockState updatePostPlacement(net.minecraft.block.BlockState stateIn,
net.minecraft.util.Direction facing,
net.minecraft.block.BlockState facingState,
net.minecraft.world.IWorld worldIn,
net.minecraft.util.math.BlockPos currentPos,
net.minecraft.util.math.BlockPos facingPos)
updatePostPlacement in class net.minecraft.block.Blockpublic net.minecraft.util.ActionResultType onBlockActivated(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 handIn,
net.minecraft.util.math.BlockRayTraceResult blockRayTraceResult)
onBlockActivated in class net.minecraft.block.Blockpublic int getLightValue(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos)
getLightValue in interface net.minecraftforge.common.extensions.IForgeBlockpublic void fillItemGroup(net.minecraft.item.ItemGroup group,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> items)
fillItemGroup in class net.minecraft.block.Blockpublic net.minecraft.item.Rarity getRarity(net.minecraft.item.ItemStack itemStack)
getRarity in interface IBlockRarityProvideritemStack - The itemstack with this blockState.public boolean hasComparatorInputOverride(net.minecraft.block.BlockState blockState)
hasComparatorInputOverride in class net.minecraft.block.Blockpublic int getComparatorInputOverride(net.minecraft.block.BlockState blockState,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos blockPos)
getComparatorInputOverride in class net.minecraft.block.Blockpublic boolean addHitEffects(net.minecraft.block.BlockState blockState,
net.minecraft.world.World world,
net.minecraft.util.math.RayTraceResult target,
net.minecraft.client.particle.ParticleManager particleManager)
addHitEffects in interface net.minecraftforge.common.extensions.IForgeBlockpublic boolean addDestroyEffects(net.minecraft.block.BlockState state,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.client.particle.ParticleManager particleManager)
addDestroyEffects in interface net.minecraftforge.common.extensions.IForgeBlockpublic boolean addLandingEffects(net.minecraft.block.BlockState blockState,
net.minecraft.world.server.ServerWorld world,
net.minecraft.util.math.BlockPos blockPosition,
net.minecraft.block.BlockState iblockstate,
net.minecraft.entity.LivingEntity entity,
int numberOfParticles)
addLandingEffects in interface net.minecraftforge.common.extensions.IForgeBlock