Class BasicTileBlock<T extends BasicTile<T>>

java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<net.minecraft.world.level.block.Block>
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
com.hrznstudio.titanium.block.BasicBlock
com.hrznstudio.titanium.block.BasicTileBlock<T>
All Implemented Interfaces:
IRecipeProvider, IBlockLootTableProvider, ILootTableProvider<BasicBlockLootTables>, IAlternativeEntries, net.minecraft.world.level.block.EntityBlock, net.minecraft.world.level.ItemLike, net.minecraftforge.common.extensions.IForgeBlock, net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.level.block.Block>
Direct Known Subclasses:
CreativeFEGeneratorBlock, RotatableBlock

public abstract class BasicTileBlock<T extends BasicTile<T>> extends BasicBlock implements net.minecraft.world.level.block.EntityBlock
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.level.block.Block

    net.minecraft.world.level.block.Block.BlockStatePairKey

    Nested 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.OffsetType, net.minecraft.world.level.block.state.BlockBehaviour.Properties, net.minecraft.world.level.block.state.BlockBehaviour.StateArgumentPredicate<A extends Object>, net.minecraft.world.level.block.state.BlockBehaviour.StatePredicate

    Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    net.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>>
  • Field Summary

    Fields inherited from class net.minecraft.world.level.block.Block

    BLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, LOGGER, RANDOM, 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_SUPPRESS_DROPS, UPDATE_SUPPRESS_LIGHT

    Fields inherited from class net.minecraft.world.level.block.state.BlockBehaviour

    drops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, material, properties, soundType, speedFactor, UPDATE_SHAPE_ORDER

    Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    delegate
  • Constructor Summary

    Constructors
    Constructor
    Description
    BasicTileBlock​(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, Class<T> tileClass)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    <T extends net.minecraft.world.level.block.entity.BlockEntity>
    net.minecraft.world.level.gameevent.GameEventListener
    getListener​(net.minecraft.world.level.Level p_153210_, T p_153211_)
     
    <R extends net.minecraft.world.level.block.entity.BlockEntity>
    net.minecraft.world.level.block.entity.BlockEntityTicker<R>
    getTicker​(net.minecraft.world.level.Level p_153212_, net.minecraft.world.level.block.state.BlockState p_153213_, net.minecraft.world.level.block.entity.BlockEntityType<R> p_153214_)
     
    getTile​(net.minecraft.world.level.BlockGetter access, net.minecraft.core.BlockPos pos)
     
     
    abstract net.minecraft.world.level.block.entity.BlockEntityType.BlockEntitySupplier<T>
     
    net.minecraft.world.level.block.entity.BlockEntityType
     
    void
    neighborChanged​(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block blockIn, net.minecraft.core.BlockPos fromPos, boolean p_220069_6_)
     
    net.minecraft.world.level.block.entity.BlockEntity
    newBlockEntity​(net.minecraft.core.BlockPos p_153215_, net.minecraft.world.level.block.state.BlockState p_153216_)
     
    net.minecraft.world.InteractionResult
    use​(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult ray)
     

    Methods inherited from class net.minecraft.world.level.block.Block

    animateTick, appendHoverText, asBlock, box, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, createBlockStateDefinition, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, fillItemCategory, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getHarvestLevel, getHarvestTool, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, getTags, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOf

    Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour

    attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMaterialColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getOffsetType, getPistonPushReaction, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isPathfindable, isSignalSource, mirror, onPlace, onProjectileHit, randomTick, rotate, skipRendering, spawnAfterBreak, tick, triggerEvent, updateIndirectNeighbourShapes, updateShape, useShapeForLightOcclusion

    Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlock

    addLandingEffects, addRunningEffects, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getPickBlock, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isToolEffective, makesOpenTrapdoorAboveClimbable, onBlockExploded, onNeighborChange, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
  • Constructor Details

    • BasicTileBlock

      public BasicTileBlock​(net.minecraft.world.level.block.state.BlockBehaviour.Properties properties, Class<T> tileClass)
  • Method Details

    • addAlternatives

      public void addAlternatives​(RegistryManager<?> registry)
      Specified by:
      addAlternatives in interface IAlternativeEntries
      Overrides:
      addAlternatives in class BasicBlock
    • getTileEntityFactory

      public abstract net.minecraft.world.level.block.entity.BlockEntityType.BlockEntitySupplier<T> getTileEntityFactory()
    • neighborChanged

      public void neighborChanged​(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.Block blockIn, net.minecraft.core.BlockPos fromPos, boolean p_220069_6_)
      Overrides:
      neighborChanged in class net.minecraft.world.level.block.state.BlockBehaviour
    • use

      public net.minecraft.world.InteractionResult use​(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.phys.BlockHitResult ray)
      Overrides:
      use in class net.minecraft.world.level.block.state.BlockBehaviour
    • getTile

      public Optional<T> getTile​(net.minecraft.world.level.BlockGetter access, net.minecraft.core.BlockPos pos)
    • getTileEntityType

      public net.minecraft.world.level.block.entity.BlockEntityType getTileEntityType()
    • getTileClass

      public Class<T> getTileClass()
    • getTicker

      @Nullable public <R extends net.minecraft.world.level.block.entity.BlockEntity> net.minecraft.world.level.block.entity.BlockEntityTicker<R> getTicker​(net.minecraft.world.level.Level p_153212_, net.minecraft.world.level.block.state.BlockState p_153213_, net.minecraft.world.level.block.entity.BlockEntityType<R> p_153214_)
      Specified by:
      getTicker in interface net.minecraft.world.level.block.EntityBlock
    • getListener

      @Nullable public <T extends net.minecraft.world.level.block.entity.BlockEntity> net.minecraft.world.level.gameevent.GameEventListener getListener​(net.minecraft.world.level.Level p_153210_, T p_153211_)
      Specified by:
      getListener in interface net.minecraft.world.level.block.EntityBlock
    • newBlockEntity

      @Nullable public net.minecraft.world.level.block.entity.BlockEntity newBlockEntity​(net.minecraft.core.BlockPos p_153215_, net.minecraft.world.level.block.state.BlockState p_153216_)
      Specified by:
      newBlockEntity in interface net.minecraft.world.level.block.EntityBlock