Package net.minecraft.tileentity
Class BellTileEntity
- java.lang.Object
-
- net.minecraftforge.common.capabilities.CapabilityProvider<TileEntity>
-
- net.minecraft.tileentity.TileEntity
-
- net.minecraft.tileentity.BellTileEntity
-
- All Implemented Interfaces:
ITickableTileEntity
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeTileEntity
,INBTSerializable<CompoundNBT>
public class BellTileEntity extends TileEntity implements ITickableTileEntity
-
-
Field Summary
Fields Modifier and Type Field Description Direction
clickDirection
private long
lastRingTimestamp
private java.util.List<LivingEntity>
nearbyEntities
private boolean
resonating
private int
resonationTicks
boolean
shaking
int
ticks
-
Fields inherited from class net.minecraft.tileentity.TileEntity
level, remove, worldPosition
-
Fields inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
INFINITE_EXTENT_AABB
-
-
Constructor Summary
Constructors Constructor Description BellTileEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
areRaidersNearby()
private void
glow(LivingEntity p_222827_1_)
private boolean
isRaiderWithinRange(LivingEntity p_222832_1_)
private void
makeRaidersGlow(World p_222828_1_)
void
onHit(Direction p_213939_1_)
private void
playResonateSound()
private void
showBellParticles(World p_222826_1_)
void
tick()
boolean
triggerEvent(int p_145842_1_, int p_145842_2_)
private void
updateEntities()
-
Methods inherited from class net.minecraft.tileentity.TileEntity
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getUpdatePacket, getUpdateTag, getViewDistance, hasLevel, isRemoved, load, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, save, setChanged, setLevelAndPosition, setPosition, setRemoved
-
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
-
-
-
Field Detail
-
lastRingTimestamp
private long lastRingTimestamp
-
ticks
public int ticks
-
shaking
public boolean shaking
-
clickDirection
public Direction clickDirection
-
nearbyEntities
private java.util.List<LivingEntity> nearbyEntities
-
resonating
private boolean resonating
-
resonationTicks
private int resonationTicks
-
-
Method Detail
-
triggerEvent
public boolean triggerEvent(int p_145842_1_, int p_145842_2_)
- Overrides:
triggerEvent
in classTileEntity
-
tick
public void tick()
- Specified by:
tick
in interfaceITickableTileEntity
-
playResonateSound
private void playResonateSound()
-
onHit
public void onHit(Direction p_213939_1_)
-
updateEntities
private void updateEntities()
-
areRaidersNearby
private boolean areRaidersNearby()
-
makeRaidersGlow
private void makeRaidersGlow(World p_222828_1_)
-
showBellParticles
private void showBellParticles(World p_222826_1_)
-
isRaiderWithinRange
private boolean isRaiderWithinRange(LivingEntity p_222832_1_)
-
glow
private void glow(LivingEntity p_222827_1_)
-
-