public class UTileEntityBlock extends UBlock
Modifier and Type | Field and Description |
---|---|
protected java.util.function.Supplier<net.minecraft.tileentity.TileEntityType<?>> |
tileEntityType |
Constructor and Description |
---|
UTileEntityBlock(java.lang.String name,
net.minecraft.block.Block.Properties properties,
net.minecraft.item.Item.Properties itemblockproperties,
java.util.function.Supplier<net.minecraft.tileentity.TileEntityType<?>> tileentitytype) |
UTileEntityBlock(java.lang.String name,
net.minecraft.block.Block.Properties properties,
java.util.function.Supplier<net.minecraft.tileentity.TileEntityType<?>> tileentitytype) |
UTileEntityBlock(java.lang.String name,
net.minecraft.item.ItemGroup group,
net.minecraft.block.Block.Properties properties,
net.minecraft.item.Item.Properties itemblockproperties,
java.util.function.Supplier<net.minecraft.tileentity.TileEntityType<?>> tileentitytype) |
UTileEntityBlock(java.lang.String name,
net.minecraft.item.ItemGroup group,
net.minecraft.block.Block.Properties properties,
java.util.function.Supplier<net.minecraft.tileentity.TileEntityType<?>> tileentitytype) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.tileentity.TileEntity |
createTileEntity(net.minecraft.block.BlockState state,
net.minecraft.world.IBlockReader world) |
boolean |
hasTileEntity(net.minecraft.block.BlockState state) |
<T extends net.minecraft.tileentity.TileEntity> |
isTileEntityFromType(net.minecraft.world.IBlockReader world,
net.minecraft.util.math.BlockPos pos)
Return an optional with a tile entity if the tile entity at this position exists and is the same tile entity type as
this block creates.
|
boolean |
openContainer(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player) |
boolean |
openContainer(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.entity.player.PlayerEntity player,
boolean canOpenSneak) |
createBlockItem, getBlockItem, getEntryName
addInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillStateContainer, fillWithRain, func_220055_a, func_220064_c, func_220074_n, func_220080_a, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderLayer, getRenderShape, getRenderType, getShape, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateForPlacement, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasSolidSide, hasTileEntity, isAir, isDirt, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isValidPosition, isVariableOpacity, makeCuboidShape, mirror, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockActivated, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, onReplaced, propagatesSkylightDown, randomTick, replaceBlock, rotate, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors, updatePostPlacement
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canRenderInLayer, doesSideBlockRendering, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isReplaceableOreGen, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower
protected final java.util.function.Supplier<net.minecraft.tileentity.TileEntityType<?>> tileEntityType
public UTileEntityBlock(java.lang.String name, net.minecraft.block.Block.Properties properties, java.util.function.Supplier<net.minecraft.tileentity.TileEntityType<?>> tileentitytype)
public UTileEntityBlock(java.lang.String name, net.minecraft.item.ItemGroup group, net.minecraft.block.Block.Properties properties, java.util.function.Supplier<net.minecraft.tileentity.TileEntityType<?>> tileentitytype)
public UTileEntityBlock(java.lang.String name, net.minecraft.block.Block.Properties properties, net.minecraft.item.Item.Properties itemblockproperties, java.util.function.Supplier<net.minecraft.tileentity.TileEntityType<?>> tileentitytype)
public UTileEntityBlock(java.lang.String name, net.minecraft.item.ItemGroup group, net.minecraft.block.Block.Properties properties, net.minecraft.item.Item.Properties itemblockproperties, java.util.function.Supplier<net.minecraft.tileentity.TileEntityType<?>> tileentitytype)
public boolean hasTileEntity(net.minecraft.block.BlockState state)
public net.minecraft.tileentity.TileEntity createTileEntity(net.minecraft.block.BlockState state, net.minecraft.world.IBlockReader world)
public boolean openContainer(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player)
public boolean openContainer(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player, boolean canOpenSneak)
public <T extends net.minecraft.tileentity.TileEntity> java.util.Optional<T> isTileEntityFromType(net.minecraft.world.IBlockReader world, net.minecraft.util.math.BlockPos pos)
T
- Tile entityworld
- Worldpos
- Position of the tile entity