Package io.github.icrazyblaze.twitchmod
Class CommandHandlers
java.lang.Object
io.github.icrazyblaze.twitchmod.CommandHandlers
This class contains every method used by commands registered in the ChatPicker class.
- See Also:
ChatPicker
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
static boolean
static boolean
static boolean
static boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addPotionEffects(net.minecraft.world.effect.MobEffectInstance... effectInstances)
static void
bedrockOnBreak(net.minecraftforge.event.world.BlockEvent.BreakEvent event)
static void
static void
broadcastMessage(net.minecraft.network.chat.MutableComponent message)
This method sends a message to everyone on a server.static void
changeDurability(boolean repairItem)
static void
static void
static void
createBook(List<String> text)
static void
static void
static void
static void
static void
dismount()
static void
static void
dropItem()
static void
static void
static void
explodeOnBreak(net.minecraftforge.event.world.BlockEvent.BreakEvent event)
static void
static void
static net.minecraft.resources.ResourceLocation[]
static net.minecraft.world.item.ItemStack
getRandomItemStack(boolean randomCount)
static void
static void
static void
static void
static void
itemRoulette(String sender)
static void
static void
static void
static void
static void
static void
static void
playSound(net.minecraft.sounds.SoundEvent sound, net.minecraft.sounds.SoundSource category, float volume, float pitch)
static void
pumpkin()
static void
static void
renameItem(String name)
static void
rollTheDice(String sender)
static void
setBlock(net.minecraft.core.BlockPos bpos, net.minecraft.world.level.block.state.BlockState state)
static void
setDifficulty(net.minecraft.world.Difficulty difficulty)
static void
static void
static void
setSpawn()
static void
setTime(long time)
static void
showMessagebox(String message)
static void
shuffleInventory(String sender)
static void
static void
static void
static void
static void
spawnMob(net.minecraft.world.entity.Entity ent)
static void
spawnMobBehind(net.minecraft.world.entity.Entity ent)
static void
static void
surroundPlayer(net.minecraft.world.level.block.state.BlockState block)
static void
static void
static void
villagersDie(net.minecraftforge.event.entity.player.PlayerInteractEvent.EntityInteract event)
static void
workbenchesBreak(net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickBlock event)
-
Field Details
-
oresExplode
public static boolean oresExplode -
placeBedrockOnBreak
public static boolean placeBedrockOnBreak -
burnVillagersOnInteract
public static boolean burnVillagersOnInteract -
destroyWorkbenchesOnInteract
public static boolean destroyWorkbenchesOnInteract -
messagesList
-
enableFrenzyMode
public static boolean enableFrenzyMode
-
-
Constructor Details
-
CommandHandlers
public CommandHandlers()
-
-
Method Details
-
getLootTables
public static net.minecraft.resources.ResourceLocation[] getLootTables() -
rollTheDice
-
giveRandomPotionEffect
public static void giveRandomPotionEffect() -
addPotionEffects
public static void addPotionEffects(net.minecraft.world.effect.MobEffectInstance... effectInstances) -
setBlock
public static void setBlock(net.minecraft.core.BlockPos bpos, net.minecraft.world.level.block.state.BlockState state) -
setOnFire
public static void setOnFire() -
setRainAndThunder
public static void setRainAndThunder() -
setDifficulty
public static void setDifficulty(net.minecraft.world.Difficulty difficulty) -
setTime
public static void setTime(long time) -
drainHealth
public static void drainHealth() -
setSpawn
public static void setSpawn() -
deathTimer
public static void deathTimer() -
frenzyTimer
public static void frenzyTimer() -
graceTimer
public static void graceTimer() -
disableGraceTimer
public static void disableGraceTimer() -
disableFrenzyTimer
public static void disableFrenzyTimer() -
floorIsLava
public static void floorIsLava() -
placeWater
public static void placeWater() -
placeSponge
public static void placeSponge() -
spawnAnvil
public static void spawnAnvil() -
placeCobweb
public static void placeCobweb() -
spawnMob
public static void spawnMob(net.minecraft.world.entity.Entity ent) -
pigmanScare
public static void pigmanScare() -
elderGuardianScare
public static void elderGuardianScare() -
playSound
public static void playSound(net.minecraft.sounds.SoundEvent sound, net.minecraft.sounds.SoundSource category, float volume, float pitch) -
spawnFireball
public static void spawnFireball() -
spawnLightning
public static void spawnLightning() -
spawnArmorStand
public static void spawnArmorStand() -
spawnMobBehind
public static void spawnMobBehind(net.minecraft.world.entity.Entity ent) -
breakBlock
public static void breakBlock() -
infestBlock
public static void infestBlock() -
surroundPlayer
public static void surroundPlayer(net.minecraft.world.level.block.state.BlockState block) -
dropItem
public static void dropItem() -
changeDurability
public static void changeDurability(boolean repairItem) -
removeRandomItemStack
public static void removeRandomItemStack() -
getRandomItemStack
public static net.minecraft.world.item.ItemStack getRandomItemStack(boolean randomCount) -
giveAndRemoveRandom
public static void giveAndRemoveRandom() -
itemRoulette
-
shuffleInventory
-
renameItem
-
enchantItem
public static void enchantItem() -
curseArmour
public static void curseArmour() -
pumpkin
public static void pumpkin() -
toggleCrouch
public static void toggleCrouch() -
toggleSprint
public static void toggleSprint() -
dismount
public static void dismount() -
chorusTeleport
public static void chorusTeleport() -
showMessagebox
-
startWritingBook
public static void startWritingBook() -
createBook
-
placeSign
-
placeChest
public static void placeChest() -
chooseRandomMessage
public static void chooseRandomMessage() -
broadcastMessage
public static void broadcastMessage(net.minecraft.network.chat.MutableComponent message)This method sends a message to everyone on a server. -
explodeOnBreak
public static void explodeOnBreak(net.minecraftforge.event.world.BlockEvent.BreakEvent event) -
bedrockOnBreak
public static void bedrockOnBreak(net.minecraftforge.event.world.BlockEvent.BreakEvent event) -
villagersDie
public static void villagersDie(net.minecraftforge.event.entity.player.PlayerInteractEvent.EntityInteract event) -
workbenchesBreak
public static void workbenchesBreak(net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickBlock event)
-